]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: Always evaluate new timeout against min_timeout
authorGuenter Roeck <linux@roeck-us.net>
Tue, 29 Sep 2015 08:27:24 +0000 (01:27 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 3 Nov 2015 13:34:22 +0000 (14:34 +0100)
commitf28d16a240189a49cbc7021d0a627904dabdf6e6
treea187cd45cb91719d4843817cb886756823152ef2
parentbf68f3952af230488a36a67ee7507a112b7bd18a
watchdog: Always evaluate new timeout against min_timeout

Up to now, a new timeout value is only evaluated against min_timeout
if max_timeout is provided. This does not really make sense; a driver
can have a minimum timeout even if it does not have a maximum timeout.
Ensure that it is not smaller than min_timeout, even if max_timeout
is not set.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
include/linux/watchdog.h