aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/smp.c
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2011-04-28 01:07:23 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-05-04 01:22:59 -0400
commit104699c0ab473535793b5fea156adaf309afd29b (patch)
tree6fb55df112b7beb3af4840378b5b3bb55565659b /arch/powerpc/kernel/smp.c
parent48404f2e95ef0ffd8134d89c8abcd1a15e15f1b0 (diff)
powerpc: Convert old cpumask API into new one
Adapt new API. Almost change is trivial. Most important change is the below line because we plan to change task->cpus_allowed implementation. - ctx->cpus_allowed = current->cpus_allowed; Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/smp.c')
-rw-r--r--arch/powerpc/kernel/smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
index b6083f4f39b1..87517ab6d365 100644
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -513,7 +513,7 @@ int cpu_first_thread_of_core(int core)
513} 513}
514EXPORT_SYMBOL_GPL(cpu_first_thread_of_core); 514EXPORT_SYMBOL_GPL(cpu_first_thread_of_core);
515 515
516/* Must be called when no change can occur to cpu_present_map, 516/* Must be called when no change can occur to cpu_present_mask,
517 * i.e. during cpu online or offline. 517 * i.e. during cpu online or offline.
518 */ 518 */
519static struct device_node *cpu_to_l2cache(int cpu) 519static struct device_node *cpu_to_l2cache(int cpu)
@@ -614,7 +614,7 @@ void __init smp_cpus_done(unsigned int max_cpus)
614 * se we pin us down to CPU 0 for a short while 614 * se we pin us down to CPU 0 for a short while
615 */ 615 */
616 alloc_cpumask_var(&old_mask, GFP_NOWAIT); 616 alloc_cpumask_var(&old_mask, GFP_NOWAIT);
617 cpumask_copy(old_mask, &current->cpus_allowed); 617 cpumask_copy(old_mask, tsk_cpus_allowed(current));
618 set_cpus_allowed_ptr(current, cpumask_of(boot_cpuid)); 618 set_cpus_allowed_ptr(current, cpumask_of(boot_cpuid));
619 619
620 if (smp_ops && smp_ops->setup_cpu) 620 if (smp_ops && smp_ops->setup_cpu)