From: Eric W. Biederman Date: Tue, 26 Jul 2005 18:07:01 +0000 (-0600) Subject: [PATCH] machine_shutdown: Typo fix to actually allow specifying which cpu to reboot on X-Git-Tag: v2.6.13-rc4~46 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8e392e7c8f019657ff3ebe70a45d234990831db;p=linux-2.6 [PATCH] machine_shutdown: Typo fix to actually allow specifying which cpu to reboot on This appears to be a typo I introduced when cleaning this code up earlier. Ooops. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/reboot.c b/arch/i386/kernel/reboot.c index d473350aa0..1049876702 100644 --- a/arch/i386/kernel/reboot.c +++ b/arch/i386/kernel/reboot.c @@ -284,7 +284,7 @@ void machine_shutdown(void) reboot_cpu_id = 0; /* See if there has been given a command line override */ - if ((reboot_cpu_id != -1) && (reboot_cpu < NR_CPUS) && + if ((reboot_cpu != -1) && (reboot_cpu < NR_CPUS) && cpu_isset(reboot_cpu, cpu_online_map)) { reboot_cpu_id = reboot_cpu; }