On 11/20/2015 01:54 PM, Damien Riegel wrote:
Many watchdog drivers register a reboot notifier in order to stop the
watchdog on system reboot. Thus we can factorize this code in the
watchdog core.
For that purpose, a new notifier block is added in watchdog_device for
internal use only, as well as a new watchdog_stop_on_reboot helper
function.
If this helper is called, watchdog core registers the related notifier
block and will stop the watchdog when SYS_HALT or SYS_DOWN is received.
Since this operation can be critical on some platforms, abort the device
registration if the reboot notifier registration fails.
Suggested-by: Vivien Didelot <[email protected]>
Signed-off-by: Damien Riegel <[email protected]>
Reviewed-by: Vivien Didelot <[email protected]>
Series looks good to me.
Reviewed-by: Guenter Roeck <[email protected]>
I'll apply the series to my watchdog-next branch and run it through a test
cycle.
Guenter
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html