diff options
author | 2016-10-07 15:37:00 +0300 | |
---|---|---|
committer | 2016-10-08 10:27:20 +0200 | |
commit | 53f96cee1aff74c8ee3c5f7a25df0c01d7117eeb (patch) | |
tree | 37a838b634be099db8b442e13d13686c1a3f1b4e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | watchdog: pretimeout: add panic pretimeout governor (diff) | |
download | wireguard-linux-53f96cee1aff74c8ee3c5f7a25df0c01d7117eeb.tar.xz wireguard-linux-53f96cee1aff74c8ee3c5f7a25df0c01d7117eeb.zip |
watchdog: pretimeout: add option to select a pretimeout governor in runtime
The change converts watchdog device attribute "pretimeout_governor" from
read-only to read-write type to allow users to select a desirable
watchdog pretimeout governor in runtime, e.g.
% echo -n panic > /sys/..../watchdog/watchdog0/pretimeout
To get this working a list of registered pretimeout governors is created
and a new helper function watchdog_pretimeout_governor_set() is exported
to watchdog_dev.c.
If a selected governor is gone, a watchdog device pretimeout notification
is delegated to a default built-in pretimeout governor.
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions