Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8793
b: refs/heads/master
c: 6f673d8
h: refs/heads/master
i:
  8791: f00538e
v: v3
  • Loading branch information
Tobias Klauser authored and Linus Torvalds committed Sep 13, 2005
1 parent 47d99b8 commit 3bbf0e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 64ccd0cfa1e29c2d20b7085ab9611114d327b571
refs/heads/master: 6f673d83ca3b7a6aeaacfd45d6ce466c33df8039
7 changes: 3 additions & 4 deletions trunk/arch/i386/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/mc146818rtc.h>
#include <linux/efi.h>
#include <linux/dmi.h>
#include <linux/ctype.h>
#include <asm/uaccess.h>
#include <asm/apic.h>
#include <asm/desc.h>
Expand All @@ -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)
{
Expand All @@ -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
Expand Down

0 comments on commit 3bbf0e4

Please sign in to comment.