aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-09-24 11:34:48 -0400
committerRusty Russell <rusty@rustcorp.com.au>2009-09-23 20:04:48 -0400
commitea0f1cab6ed43121ff6f24c1bb02e88a8d11a2d6 (patch)
tree2d4052d4c485478b251367645a4299280e9482f5 /arch/powerpc/kernel
parent4037ac6e2cb4e3148c25124b431eead4e704a4ff (diff)
cpumask: Use accessors for cpu_*_mask: powerpc
Use the accessors rather than frobbing bits directly (the new versions are const). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Mike Travis <travis@sgi.com>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/setup-common.c6
-rw-r--r--arch/powerpc/kernel/smp.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index 1d5570a1e456..9837d9153c4b 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -432,9 +432,9 @@ void __init smp_setup_cpu_maps(void)
432 for (j = 0; j < nthreads && cpu < NR_CPUS; j++) { 432 for (j = 0; j < nthreads && cpu < NR_CPUS; j++) {
433 DBG(" thread %d -> cpu %d (hard id %d)\n", 433 DBG(" thread %d -> cpu %d (hard id %d)\n",
434 j, cpu, intserv[j]); 434 j, cpu, intserv[j]);
435 cpu_set(cpu, cpu_present_map); 435 set_cpu_present(cpu, true);
436 set_hard_smp_processor_id(cpu, intserv[j]); 436 set_hard_smp_processor_id(cpu, intserv[j]);
437 cpu_set(cpu, cpu_possible_map); 437 set_cpu_possible(cpu, true);
438 cpu++; 438 cpu++;
439 } 439 }
440 } 440 }
@@ -480,7 +480,7 @@ void __init smp_setup_cpu_maps(void)
480 maxcpus); 480 maxcpus);
481 481
482 for (cpu = 0; cpu < maxcpus; cpu++) 482 for (cpu = 0; cpu < maxcpus; cpu++)
483 cpu_set(cpu, cpu_possible_map); 483 set_cpu_possible(cpu, true);
484 out: 484 out:
485 of_node_put(dn); 485 of_node_put(dn);
486 } 486 }
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
index 7f68ceb3bdb8..9b86a74d2815 100644
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -287,7 +287,7 @@ void __devinit smp_prepare_boot_cpu(void)
287{ 287{
288 BUG_ON(smp_processor_id() != boot_cpuid); 288 BUG_ON(smp_processor_id() != boot_cpuid);
289 289
290 cpu_set(boot_cpuid, cpu_online_map); 290 set_cpu_online(boot_cpuid, true);
291 cpu_set(boot_cpuid, per_cpu(cpu_sibling_map, boot_cpuid)); 291 cpu_set(boot_cpuid, per_cpu(cpu_sibling_map, boot_cpuid));
292 cpu_set(boot_cpuid, per_cpu(cpu_core_map, boot_cpuid)); 292 cpu_set(boot_cpuid, per_cpu(cpu_core_map, boot_cpuid));
293#ifdef CONFIG_PPC64 293#ifdef CONFIG_PPC64
@@ -307,7 +307,7 @@ int generic_cpu_disable(void)
307 if (cpu == boot_cpuid) 307 if (cpu == boot_cpuid)
308 return -EBUSY; 308 return -EBUSY;
309 309
310 cpu_clear(cpu, cpu_online_map); 310 set_cpu_online(cpu, false);
311#ifdef CONFIG_PPC64 311#ifdef CONFIG_PPC64
312 vdso_data->processorCount--; 312 vdso_data->processorCount--;
313 fixup_irqs(cpu_online_map); 313 fixup_irqs(cpu_online_map);
@@ -361,7 +361,7 @@ void generic_mach_cpu_die(void)
361 smp_wmb(); 361 smp_wmb();
362 while (__get_cpu_var(cpu_state) != CPU_UP_PREPARE) 362 while (__get_cpu_var(cpu_state) != CPU_UP_PREPARE)
363 cpu_relax(); 363 cpu_relax();
364 cpu_set(cpu, cpu_online_map); 364 set_cpu_online(cpu, true);
365 local_irq_enable(); 365 local_irq_enable();
366} 366}
367#endif 367#endif
@@ -508,7 +508,7 @@ int __devinit start_secondary(void *unused)
508 508
509 ipi_call_lock(); 509 ipi_call_lock();
510 notify_cpu_starting(cpu); 510 notify_cpu_starting(cpu);
511 cpu_set(cpu, cpu_online_map); 511 set_cpu_online(cpu, true);
512 /* Update sibling maps */ 512 /* Update sibling maps */
513 base = cpu_first_thread_in_core(cpu); 513 base = cpu_first_thread_in_core(cpu);
514 for (i = 0; i < threads_per_core; i++) { 514 for (i = 0; i < threads_per_core; i++) {