]> 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)
commit574173ee6c2c59a397f6864ff29dc66033fb362e
tree23c11e23b7aa657103163eadd201a8d65c266532
parent90835fa706272fa584ad47aacc29bbff382f9593
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