Commit Message

When running a command like 'chrt -f 99 dd if=/dev/zero of=/dev/null',
the watchdog_worker fails to service the HW watchdog and the
HW watchdog fires long before the watchdog soft timeout.
At the moment, the watchdog_worker is invoked as a delayed work.
Delayed works are handled by non realtime kernel threads. The
WQ_HIGHPRI flag only increases the niceness of that threads.
This patchs replaces the delayed work logic by hrtimer, in order to
ensure that the watchdog_worker will already have priority.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
---
drivers/watchdog/watchdog_dev.c | 87 +++++++++++++++++++----------------------
1 file changed, 41 insertions(+), 46 deletions(-)