From 3bbf0e49a522c1a4304578644b128a41cc85a3a5 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 13 Sep 2005 01:25:48 -0700 Subject: [PATCH] --- yaml --- r: 8793 b: refs/heads/master c: 6f673d83ca3b7a6aeaacfd45d6ce466c33df8039 h: refs/heads/master i: 8791: f00538e0375866bd26b05b39594abdd7fe0c5b30 v: v3 --- [refs] | 2 +- trunk/arch/i386/kernel/reboot.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index a5e0313c1488..5952b390acd5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 64ccd0cfa1e29c2d20b7085ab9611114d327b571 +refs/heads/master: 6f673d83ca3b7a6aeaacfd45d6ce466c33df8039 diff --git a/trunk/arch/i386/kernel/reboot.c b/trunk/arch/i386/kernel/reboot.c index 1cbb9c0f4704..350ea6680f63 100644 --- a/trunk/arch/i386/kernel/reboot.c +++ b/trunk/arch/i386/kernel/reboot.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -28,8 +29,6 @@ static int reboot_thru_bios; #ifdef CONFIG_SMP static int reboot_cpu = -1; -/* shamelessly grabbed from lib/vsprintf.c for readability */ -#define is_digit(c) ((c) >= '0' && (c) <= '9') #endif static int __init reboot_setup(char *str) { @@ -49,9 +48,9 @@ static int __init reboot_setup(char *str) break; #ifdef CONFIG_SMP case 's': /* "smp" reboot by executing reset on BSP or other CPU*/ - if (is_digit(*(str+1))) { + if (isdigit(*(str+1))) { reboot_cpu = (int) (*(str+1) - '0'); - if (is_digit(*(str+2))) + if (isdigit(*(str+2))) reboot_cpu = reboot_cpu*10 + (int)(*(str+2) - '0'); } /* we will leave sorting out the final value