aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/reboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/reboot.c')
-rw-r--r--arch/x86/kernel/reboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index ba7b9a0e6063..de4a9d643bee 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -449,7 +449,7 @@ void native_machine_shutdown(void)
449 449
450#ifdef CONFIG_X86_32 450#ifdef CONFIG_X86_32
451 /* See if there has been given a command line override */ 451 /* See if there has been given a command line override */
452 if ((reboot_cpu != -1) && (reboot_cpu < NR_CPUS) && 452 if ((reboot_cpu != -1) && (reboot_cpu < nr_cpu_ids) &&
453 cpu_online(reboot_cpu)) 453 cpu_online(reboot_cpu))
454 reboot_cpu_id = reboot_cpu; 454 reboot_cpu_id = reboot_cpu;
455#endif 455#endif
@@ -459,7 +459,7 @@ void native_machine_shutdown(void)
459 reboot_cpu_id = smp_processor_id(); 459 reboot_cpu_id = smp_processor_id();
460 460
461 /* Make certain I only run on the appropriate processor */ 461 /* Make certain I only run on the appropriate processor */
462 set_cpus_allowed_ptr(current, &cpumask_of_cpu(reboot_cpu_id)); 462 set_cpus_allowed_ptr(current, cpumask_of(reboot_cpu_id));
463 463
464 /* O.K Now that I'm on the appropriate processor, 464 /* O.K Now that I'm on the appropriate processor,
465 * stop all of the others. 465 * stop all of the others.