]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: use cpu_online()
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 5 Apr 2008 13:39:09 +0000 (22:39 +0900)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:36 +0000 (17:41 +0200)
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/reboot.c

index 66cd4afc1e576565a63c232fd769cba60d162a0e..9692202d3bfb62125c42f0e437f4a618354a9223 100644 (file)
@@ -411,12 +411,12 @@ static void native_machine_shutdown(void)
 #ifdef CONFIG_X86_32
        /* See if there has been given a command line override */
        if ((reboot_cpu != -1) && (reboot_cpu < NR_CPUS) &&
-               cpu_isset(reboot_cpu, cpu_online_map))
+               cpu_online(reboot_cpu))
                reboot_cpu_id = reboot_cpu;
 #endif
 
        /* Make certain the cpu I'm about to reboot on is online */
-       if (!cpu_isset(reboot_cpu_id, cpu_online_map))
+       if (!cpu_online(reboot_cpu_id))
                reboot_cpu_id = smp_processor_id();
 
        /* Make certain I only run on the appropriate processor */