mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
reboot: move arch/x86 reboot= handling to generic kernel
Merge together the unicore32, arm, and x86 reboot= command line parameter handling. Signed-off-by: Robin Holt <holt@sgi.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Cc: Guan Xuetao <gxt@mprc.pku.edu.cn> Cc: Russ Anderson <rja@sgi.com> Cc: Robin Holt <holt@sgi.com> Acked-by: Ingo Molnar <mingo@kernel.org> Acked-by: 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:
committed by
Linus Torvalds
parent
7b6d864b48
commit
1b3a5d02ee
@@ -51,16 +51,6 @@ void arch_cpu_idle(void)
|
||||
local_irq_enable();
|
||||
}
|
||||
|
||||
static enum reboot_mode reboot_mode = REBOOT_HARD;
|
||||
|
||||
int __init reboot_setup(char *str)
|
||||
{
|
||||
if ('s' == str[0])
|
||||
reboot_mode = REBOOT_SOFT;
|
||||
return 1;
|
||||
}
|
||||
__setup("reboot=", reboot_setup);
|
||||
|
||||
void machine_halt(void)
|
||||
{
|
||||
gpio_set_value(GPO_SOFT_OFF, 0);
|
||||
|
||||
Reference in New Issue
Block a user