aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/sun4d_smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel/sun4d_smp.c')
-rw-r--r--arch/sparc/kernel/sun4d_smp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/sparc/kernel/sun4d_smp.c b/arch/sparc/kernel/sun4d_smp.c
index 30ca6245692f..133387980b56 100644
--- a/arch/sparc/kernel/sun4d_smp.c
+++ b/arch/sparc/kernel/sun4d_smp.c
@@ -104,7 +104,7 @@ void __cpuinit smp4d_callin(void)
104 104
105 local_irq_enable(); /* We don't allow PIL 14 yet */ 105 local_irq_enable(); /* We don't allow PIL 14 yet */
106 106
107 while (!cpu_isset(cpuid, smp_commenced_mask)) 107 while (!cpumask_test_cpu(cpuid, &smp_commenced_mask))
108 barrier(); 108 barrier();
109 109
110 spin_lock_irqsave(&sun4d_imsk_lock, flags); 110 spin_lock_irqsave(&sun4d_imsk_lock, flags);
@@ -313,10 +313,10 @@ static void smp4d_cross_call(smpfunc_t func, cpumask_t mask, unsigned long arg1,
313 { 313 {
314 register int i; 314 register int i;
315 315
316 cpu_clear(smp_processor_id(), mask); 316 cpumask_clear_cpu(smp_processor_id(), &mask);
317 cpus_and(mask, cpu_online_map, mask); 317 cpumask_and(&mask, cpu_online_mask, &mask);
318 for (i = 0; i <= high; i++) { 318 for (i = 0; i <= high; i++) {
319 if (cpu_isset(i, mask)) { 319 if (cpumask_test_cpu(i, &mask)) {
320 ccall_info.processors_in[i] = 0; 320 ccall_info.processors_in[i] = 0;
321 ccall_info.processors_out[i] = 0; 321 ccall_info.processors_out[i] = 0;
322 sun4d_send_ipi(i, IRQ_CROSS_CALL); 322 sun4d_send_ipi(i, IRQ_CROSS_CALL);
@@ -329,7 +329,7 @@ static void smp4d_cross_call(smpfunc_t func, cpumask_t mask, unsigned long arg1,
329 329
330 i = 0; 330 i = 0;
331 do { 331 do {
332 if (!cpu_isset(i, mask)) 332 if (!cpumask_test_cpu(i, &mask))
333 continue; 333 continue;
334 while (!ccall_info.processors_in[i]) 334 while (!ccall_info.processors_in[i])
335 barrier(); 335 barrier();
@@ -337,7 +337,7 @@ static void smp4d_cross_call(smpfunc_t func, cpumask_t mask, unsigned long arg1,
337 337
338 i = 0; 338 i = 0;
339 do { 339 do {
340 if (!cpu_isset(i, mask)) 340 if (!cpumask_test_cpu(i, &mask))
341 continue; 341 continue;
342 while (!ccall_info.processors_out[i]) 342 while (!ccall_info.processors_out[i])
343 barrier(); 343 barrier();