]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: hpwdt: Initialize pretimeout from module parameter.
authorJerry Hoemann <jerry.hoemann@hpe.com>
Wed, 8 Aug 2018 19:13:23 +0000 (13:13 -0600)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 2 Oct 2018 11:32:21 +0000 (13:32 +0200)
commitd80bccd3982ae93e52171aea9f3e2d80b13639e3
tree23c11e23b7aa657103163eadd201a8d65c266532
parent5dfa044c3a3b9125da254b1d9969551d27523c1c
watchdog: hpwdt: Initialize pretimeout from module parameter.

When the pretimeout is specified as a module parameter, the
value should be reflected in hpwdt_dev.pretimeout.  The default
(on) case is correct.  But, when disabling pretimeout, the value
should be set to zero in hpwdt_dev.

When compiling w/o CONFIG_HPWDT_NMI_DECODING defined, the pretimeout
module parameter is ignored and the value internally will be 0.

Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/hpwdt.c