]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
watchdog: softdog: make pretimeout support a compile option
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 7 Feb 2017 14:03:29 +0000 (15:03 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 24 Feb 2017 22:00:23 +0000 (14:00 -0800)
commit4cbc69023a2129c271ed67da555d62eca42469d2
treedfeff856480f7d1cd018f3e6b8c90b470fa53967
parent8ce6796dabb9f1f55b07cd032449a24b625f761e
watchdog: softdog: make pretimeout support a compile option

It occurred to me that the panic pretimeout governor will stall the
softdog, because it is purely software which simply breaks when the
kernel panics. Testing governors with the softdog on the other hand is
really useful, so make this feature a compile time option which nees to
be enabled explicitly. This also removes the overhead if pretimeout
support is not used because it will now be compiled away (saving ~10% on
ARM32).

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/Kconfig
drivers/watchdog/softdog.c