]> 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)
commit7778760f993d064fb437f7653d44a58da21770cf
tree88cc982dbe78035d8c58e90f02f86cf100c7bd0a
parentab1775a6e1d6cd4c43de61a29eaed73b6ac9b5cb
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