• Jerry Hoemann's avatar
    watchdog: hpwdt: Programable Pretimeout NMI · 0458f403
    Jerry Hoemann authored
    Make whether or not the hpwdt watchdog delivers a pretimeout NMI
    programable by the user.
    
    The underlying iLO hardware is programmable as to whether or not
    a pre-timeout NMI is delivered to the system before the iLO resets
    the system.  However, the iLO does not allow for programming the
    length of time that NMI is delivered before the system is reset.
    
    By watchdog API, in hpwdt_set_pretimeout a val == 0 disables the NMI.
    When val != 0, hpwdt_set_pretimeout will enable the pretimeout NMI
    provided the current timeout is greator than the HW specified
    pretimeout length. Otherwise an error is returned.
    
    In set_timeout, if the new timeout is <= an already established pretimeout,
    the pretimeout is canceled.  This matches the action watchdog_set_timeout
    in the watchdog core would do if an hpwdt specific set_timeout
    function wasn't specified.
    Signed-off-by: default avatarJerry Hoemann <jerry.hoemann@hpe.com>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
    0458f403
hpwdt.c 8.31 KB