]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: asm9260_wdt: don't round closest with get_timeleft
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 17 Jul 2017 17:12:24 +0000 (19:12 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Sat, 9 Sep 2017 18:25:34 +0000 (20:25 +0200)
commitec09ac5e75fa098272950352807b3c44bb40b3b6
tree98c1a725ccb738ad45a6b4a2dd5c3b99e3b1929b
parent39e6db9f938ab4b3bf488cc334cdf395611260e4
watchdog: asm9260_wdt: don't round closest with get_timeleft

We should never return more time left than there actually is. So, switch
to a plain divider instead of DIV_ROUND_CLOSEST.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.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@iguana.be>
drivers/watchdog/asm9260_wdt.c