]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
cpumask: Use accessors code: sparc
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 16 Mar 2009 04:10:22 +0000 (14:40 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 16 Mar 2009 04:10:22 +0000 (14:40 +1030)
Impact: use new API

Use the accessors rather than frobbing bits directly.  Most of this is
in arch code I haven't even compiled, but it is mostly straightforward.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
arch/sparc/kernel/smp_32.c
arch/sparc/kernel/sun4d_smp.c
arch/sparc/kernel/sun4m_smp.c

index 1e5ac4e282e1285030aaa43380b91c01b7bcff48..88f43c5ba384d07618c1f11d77a1b376d5f05fa7 100644 (file)
@@ -332,8 +332,8 @@ void __init smp_setup_cpu_possible_map(void)
        instance = 0;
        while (!cpu_find_by_instance(instance, NULL, &mid)) {
                if (mid < NR_CPUS) {
-                       cpu_set(mid, cpu_possible_map);
-                       cpu_set(mid, cpu_present_map);
+                       set_cpu_possible(mid, true);
+                       set_cpu_present(mid, true);
                }
                instance++;
        }
@@ -351,8 +351,8 @@ void __init smp_prepare_boot_cpu(void)
                printk("boot cpu id != 0, this could work but is untested\n");
 
        current_thread_info()->cpu = cpuid;
-       cpu_set(cpuid, cpu_online_map);
-       cpu_set(cpuid, cpu_possible_map);
+       set_cpu_online(cpuid, true);
+       set_cpu_possible(cpuid, true);
 }
 
 int __cpuinit __cpu_up(unsigned int cpu)
index 50afaed99c8a13d74b4e873eca58c5528563ba48..e85e6aa1abd876b4db1da28bc2c2108212f72fac 100644 (file)
@@ -150,7 +150,7 @@ void __cpuinit smp4d_callin(void)
        spin_lock_irqsave(&sun4d_imsk_lock, flags);
        cc_set_imsk(cc_get_imsk() & ~0x4000); /* Allow PIL 14 as well */
        spin_unlock_irqrestore(&sun4d_imsk_lock, flags);
-       cpu_set(cpuid, cpu_online_map);
+       set_cpu_online(cpuid, true);
 
 }
 
index 8040376c4890cc11c95e7c783f331abc7becb456..2a8f4fc4056d7a48c32a0e3a7f9ca5a7330f0867 100644 (file)
@@ -113,7 +113,7 @@ void __cpuinit smp4m_callin(void)
 
        local_irq_enable();
 
-       cpu_set(cpuid, cpu_online_map);
+       set_cpu_online(cpuid, true);
 }
 
 /*