• Ben Hutchings's avatar
    watchdog: Improve initialisation error message and documentation · 55142374
    Ben Hutchings authored
    The error message 'NMI watchdog failed to create perf event...'
    does not make it clear that this is a fatal error for the
    watchdog.  It also currently prints the error value as a
    pointer, rather than extracting the error code with PTR_ERR().
    Fix that.
    
    Add a note to the description of the 'nowatchdog' kernel
    parameter to associate it with this message.
    Reported-by: default avatarCesare Leonardi <celeonar@gmail.com>
    Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
    Cc: 599368@bugs.debian.org
    Cc: 608138@bugs.debian.org
    Cc: Don Zickus <dzickus@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: <stable@kernel.org> # .37.x and later
    LKML-Reference: <1294009362.3167.126.camel@localhost>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    55142374
watchdog.c 13.3 KB