[lkml]   [2005]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH 12/23] Update sysrq-B to use emergency_restart()

    sysrq calls into the reboot path from an interrupt handler
    we can either push the code do into process context and
    call kernel_restart and get a clean reboot or we can simply
    reboot the machine, and increase our chances of actually
    rebooting. emergency_reboot() seems like the closest match
    to what we have previously done, and what we want.

    Signed-off-by: Eric W. Biederman <>

    drivers/char/sysrq.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c
    --- a/drivers/char/sysrq.c
    +++ b/drivers/char/sysrq.c
    @@ -115,7 +115,7 @@ static void sysrq_handle_reboot(int key,
    struct tty_struct *tty)
    - machine_restart(NULL);
    + emergency_restart();

    static struct sysrq_key_op sysrq_reboot_op = {
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at
     \ /
      Last update: 2005-07-26 21:18    [W:0.019 / U:7.056 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site