]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: Prevent polling from happening during system suspend
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 6 Nov 2011 13:21:38 +0000 (14:21 +0100)
committerLen Brown <len.brown@intel.com>
Mon, 7 Nov 2011 01:38:49 +0000 (20:38 -0500)
commit58cd80fe96d57c2eabd99b5835d7510f15d73a13
tree88cc982dbe78035d8c58e90f02f86cf100c7bd0a
parent9d7ef78944511177fdd5fd8f0e8af6c7bc05ae65
thermal: Prevent polling from happening during system suspend

The thermal driver should use a freezable workqueue to schedule
polling to prevent thermal_zone_device_update() from being run
during system suspend, when the devices it relies on may be inactive.
Make it use the system freezable workqueue for this purpose.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/thermal/thermal_sys.c