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)
commitf8f92c072e6f1e694c13d432bdbdbcbf138c31ad
tree1ace4779880da25dc389e7acf429a8bc050c3f74
parent42f34c4e245641d1bae88de469053d3c3aa4d9fa
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