]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: watchdog: avoid keepalive flood
authorEugeniu Rosca <erosca@de.adit-jv.com>
Sat, 1 Jul 2017 12:57:29 +0000 (14:57 +0200)
committerShuah Khan <shuahkh@osg.samsung.com>
Mon, 24 Jul 2017 18:37:01 +0000 (12:37 -0600)
commit6beec13415129c76f9d0c33066f1f3153bdcd379
tree1ace4779880da25dc389e7acf429a8bc050c3f74
parent713a4ba32b78df424eb31683654763e653130e8f
selftests: watchdog: avoid keepalive flood

Calling `watchdog-test [options] -p 0` results in flooding the kernel
with WDIOC_KEEPALIVE. Fix this by enforcing 1 second as minimal/default
keepalive/ping rate.

Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/watchdog/watchdog-test.c