reboot: arm: prepare reboot_mode for moving to generic kernel code

Prepare for the moving the parsing of reboot= to the generic kernel code
by making reboot_mode into a more generic form.

Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Russ Anderson <rja@sgi.com>
Cc: Robin Holt <holt@sgi.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Robin Holt
2013-07-08 16:01:39 -07:00
committed by Linus Torvalds
parent 5859194278
commit 16d6d5b00e
4 changed files with 10 additions and 9 deletions

View File

@@ -175,14 +175,14 @@ void arch_cpu_idle(void)
default_idle();
}
static char reboot_mode = 'h';
enum reboot_mode reboot_mode = REBOOT_HARD;
int __init reboot_setup(char *str)
static int __init reboot_setup(char *str)
{
reboot_mode = str[0];
if ('s' == str[0])
reboot_mode = REBOOT_SOFT;
return 1;
}
__setup("reboot=", reboot_setup);
/*