lkml.org 
[lkml]   [2005]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 11/23] Call emergency_reboot from panic
    From
    Date

    We know the system is in trouble so there is no question if this
    is an emergecy :)

    Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
    ---

    kernel/panic.c | 9 ++++-----
    1 files changed, 4 insertions(+), 5 deletions(-)

    fd248dd54c86f633bd2618d8c475c39465f8d552
    diff --git a/kernel/panic.c b/kernel/panic.c
    --- a/kernel/panic.c
    +++ b/kernel/panic.c
    @@ -111,12 +111,11 @@ NORET_TYPE void panic(const char * fmt,
    mdelay(1);
    i++;
    }
    - /*
    - * Should we run the reboot notifier. For the moment Im
    - * choosing not too. It might crash, be corrupt or do
    - * more harm than good for other reasons.
    + /* This will not be a clean reboot, with everything
    + * shutting down. But if there is a chance of
    + * rebooting the system it will be rebooted.
    */
    - machine_restart(NULL);
    + emergency_restart();
    }
    #ifdef __sparc__
    {
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-07-26 21:26    [W:0.020 / U:30.652 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site