Skip to contentSkip to conversation

arch/hexagon: remove references to cpu_*_map.

PATCH Applied Rusty Russell 3 participants 4 messages Feb 15, 2012 – Apr 3, 2012 Qualcomm hexagon architecture

lore
Share & tools
lore
#0 lore raw

PATCH 3/12 arch/hexagon: remove references to cpu_*_map.

From: Rusty Russell <[email protected]>

This has been obsolescent for a while; time for the final push.

---
 arch/hexagon/kernel/smp.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/hexagon/kernel/smp.c +4 -4
@@ -36,7 +36,7 @@
 #define BASE_IPI_IRQ 26
 
 /*
- * cpu_possible_map needs to be filled out prior to setup_per_cpu_areas
+ * cpu_possible_mask needs to be filled out prior to setup_per_cpu_areas
  * (which is prior to any of our smp_prepare_cpu crap), in order to set
  * up the...  per_cpu areas.
  */
@@ -211,7 +211,7 @@ int __cpuinit __cpu_up(unsigned int cpu)
 	stack_start =  ((void *) thread) + THREAD_SIZE;
 	__vmstart(start_secondary, stack_start);
 
-	while (!cpu_isset(cpu, cpu_online_map))
+	while (!cpu_online(cpu))
 		barrier();
 
 	return 0;
@@ -232,7 +232,7 @@ void __init smp_prepare_cpus(unsigned in
 
 	/*  Right now, let's just fake it. */
 	for (i = 0; i < max_cpus; i++)
-		cpu_set(i, cpu_present_map);
+		set_cpu_present(i, true);
 
 	/*  Also need to register the interrupts for IPI  */
 	if (max_cpus > 1)
@@ -272,5 +272,5 @@ void smp_start_cpus(void)
 	int i;
 
 	for (i = 0; i < NR_CPUS; i++)
-		cpu_set(i, cpu_possible_map);
+		set_cpu_possible(i, true);
 }
#2 lore raw
In reply to Rusty Russell
Quoted 11 lines · Rusty Russell

From: Rusty Russell <[email protected]>

This has been obsolescent for a while; time for the final push.

---
 arch/hexagon/kernel/smp.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Did I ever send a Signed-off-by for this? I thought I did but I can't find evidence of it. Just in case...

Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Acked-by
#3 lore raw
Quoted 13 lines · Richard Kuo
Quoted 11 lines · Rusty Russell

From: Rusty Russell <[email protected]>

This has been obsolescent for a while; time for the final push.

---
 arch/hexagon/kernel/smp.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Quoted 5 lines

Did I ever send a Signed-off-by for this? I thought I did but I can't find evidence of it. Just in case...

And, sorry about that, I really meant...

Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.