]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/reboot.c: re-enable the function of variable reboot_default
authorChuansheng Liu <chuansheng.liu@intel.com>
Tue, 24 Sep 2013 22:27:43 +0000 (15:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 Sep 2013 00:00:26 +0000 (17:00 -0700)
commit2d5b4bdfcad7bf5d93bcb92af63963575fbdcfdc
treef5c9fda1a8289a61f18ecf553e5469d6a28d9efd
parent57753f85148f871096d8cf8c637eafddd852eae9
kernel/reboot.c: re-enable the function of variable reboot_default

Commit 62e3ebc49c26 ("reboot: move arch/x86 reboot= handling to generic
kernel") did some cleanup for reboot= command line, but it made the
reboot_default inoperative.

The default value of variable reboot_default should be 1, and if command
line reboot= is not set, system will use the default reboot mode.

[akpm@linux-foundation.org: fix comment layout]
Signed-off-by: Li Fei <fei.li@intel.com>
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Acked-by: Robin Holt <robinmholt@linux.com>
Cc: <stable@vger.kernel.org> [3.11.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/reboot.c