aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/smp-cmp.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2015-03-04 19:19:17 -0500
committerRusty Russell <rusty@rustcorp.com.au>2015-03-04 23:55:06 -0500
commit8dd928915a73bf95a727a46037964243eb1e042c (patch)
tree7be1a28772bac74533f3da27ffd41e048c76b8e4 /arch/mips/kernel/smp-cmp.c
parentd089f8e97d371a662dd233491e03bda377c9d46d (diff)
mips: fix up obsolete cpu function usage.
Thanks to spatch, plus manual removal of "&*". Then a sweep for for_each_cpu_mask => for_each_cpu. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Kevin Cernekee <cernekee@gmail.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: linux-mips@linux-mips.org
Diffstat (limited to 'arch/mips/kernel/smp-cmp.c')
-rw-r--r--arch/mips/kernel/smp-cmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/smp-cmp.c b/arch/mips/kernel/smp-cmp.c
index e36a859af666..d5e0f949dc48 100644
--- a/arch/mips/kernel/smp-cmp.c
+++ b/arch/mips/kernel/smp-cmp.c
@@ -66,7 +66,7 @@ static void cmp_smp_finish(void)
66#ifdef CONFIG_MIPS_MT_FPAFF 66#ifdef CONFIG_MIPS_MT_FPAFF
67 /* If we have an FPU, enroll ourselves in the FPU-full mask */ 67 /* If we have an FPU, enroll ourselves in the FPU-full mask */
68 if (cpu_has_fpu) 68 if (cpu_has_fpu)
69 cpu_set(smp_processor_id(), mt_fpu_cpumask); 69 cpumask_set_cpu(smp_processor_id(), &mt_fpu_cpumask);
70#endif /* CONFIG_MIPS_MT_FPAFF */ 70#endif /* CONFIG_MIPS_MT_FPAFF */
71 71
72 local_irq_enable(); 72 local_irq_enable();
@@ -110,7 +110,7 @@ void __init cmp_smp_setup(void)
110#ifdef CONFIG_MIPS_MT_FPAFF 110#ifdef CONFIG_MIPS_MT_FPAFF
111 /* If we have an FPU, enroll ourselves in the FPU-full mask */ 111 /* If we have an FPU, enroll ourselves in the FPU-full mask */
112 if (cpu_has_fpu) 112 if (cpu_has_fpu)
113 cpu_set(0, mt_fpu_cpumask); 113 cpumask_set_cpu(0, &mt_fpu_cpumask);
114#endif /* CONFIG_MIPS_MT_FPAFF */ 114#endif /* CONFIG_MIPS_MT_FPAFF */
115 115
116 for (i = 1; i < NR_CPUS; i++) { 116 for (i = 1; i < NR_CPUS; i++) {