]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: hpwdt: Disable PreTimeout when Timeout is smaller
authorJerry Hoemann <jerry.hoemann@hpe.com>
Fri, 21 Sep 2018 20:50:39 +0000 (14:50 -0600)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 2 Oct 2018 11:32:28 +0000 (13:32 +0200)
commit20efbe4a41e58e51b45637ad85a4854a3bc7feda
tree4d68d8de485ce029133d8daf4f8c4e708984e2e9
parent11f26c38f54d33c16ecc96e30217327f685d295f
watchdog: hpwdt: Disable PreTimeout when Timeout is smaller

During module install, disable pretimeout if the requested timeout
value is not greater than the minimal pretimeout value that is
supported by hardware.

This makes the module load handling of pretimeout consistent
with the ioctl handling of pretimeout.

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