summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-04-03 15:25:04 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-04-03 15:25:04 +0200
commitf321c9cbf3bbf86f6e6153419eaf93ad085e3d74 (patch)
tree8326d454c934c8833ecc7e365c2cb52f0f0616be /kernel
parent431d452af13720463dda498999b2e9a08729c03a (diff)
downloadop-kernel-dev-f321c9cbf3bbf86f6e6153419eaf93ad085e3d74.zip
op-kernel-dev-f321c9cbf3bbf86f6e6153419eaf93ad085e3d74.tar.gz
PM / watchdog: iTCO: stop watchdog during system suspend
If the target sleep state of the system is not an ACPI sleep state (S1, S2 or S3), the TCO watchdog needs to be stopped during system suspend, because it may not be possible to ping it any more after timekeeping has been suspended (suspend-to-idle does that for one example). For this reason, provide ->suspend_noirq and ->resume_noirq callbacks for the iTCO watchdog driver and use them to stop and restart the watchdog during system suspend and resume, respectively, if the system is not going to enter an ACPI sleep state (in which case the watchdog will be stopped by the platform firmware before the state is entered). Reported-and-tested-by: Borun Fu <borun.fu@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud