Files
kernel_google_wahoo/include/linux
Ram Chandrasekar 4a86c2f3cc drivers: thermal: Exit sysfs notify kthread when sensor unregisters
When a thermal zone unregisters, it initiates a blocking call
kthread_stop for the sysfs notify kthread to exit. But the sysfs notify
kthread is blocked on a completion event, which may not be triggered after
the sensor driver initiates a thermal zone unregister call. So, the
kthread_stop will be blocked forever.

As a part of thermal zone unregister, set a thermal zone unregister flag
and send a completion event before calling kthread_stop. Make the sysfs
notify kthread to be aware of thermal zone unregister flag and exit
after the completion event is triggered.

Change-Id: Icf045e0ad6e28135cd3a54c15d9923f095a286ff
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2017-02-15 12:05:11 -07:00
..
2016-03-03 15:07:26 -08:00
2015-10-17 21:22:08 -07:00
2015-10-07 18:08:15 +01:00
2016-03-22 11:10:29 -07:00
2016-03-23 21:23:46 -07:00
2016-03-09 15:34:52 -08:00
2015-11-07 10:40:47 -07:00
2016-03-01 13:00:24 -08:00
2015-09-04 16:54:41 -07:00
2015-09-08 15:35:28 -07:00
2015-10-18 10:14:39 -07:00
2016-10-11 18:04:11 -07:00
2016-03-22 11:10:20 -07:00
2016-03-22 11:16:34 -07:00
2016-11-15 14:54:51 -07:00
2016-04-13 11:11:51 -07:00
2016-02-16 13:50:55 -08:00
2016-04-13 11:11:30 -07:00
2015-09-08 15:35:28 -07:00
2016-04-20 15:42:02 +09:00
2015-10-23 05:44:28 -07:00
2016-03-22 11:04:03 -07:00
2017-01-23 11:03:24 +05:30
2017-01-23 16:01:01 -08:00
2015-10-01 15:06:43 +02:00
2015-10-13 19:01:25 +02:00
2017-01-04 19:12:04 -08:00
2015-11-23 09:44:58 +01:00
2015-10-27 18:55:31 -07:00
2015-10-20 22:10:45 +08:00
2016-03-22 11:15:49 -07:00
2016-03-22 11:10:25 -07:00
2016-03-23 21:25:09 -07:00
2016-03-03 15:07:28 -08:00
2016-03-22 11:03:30 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2016-05-31 15:27:11 -07:00
2017-01-23 18:31:21 -08:00
2016-03-23 21:19:04 -07:00
2016-04-08 11:24:28 +08:00
2015-10-09 17:00:32 -04:00
2015-10-06 17:08:19 +02:00
2016-03-22 11:08:08 -07:00
2016-03-23 20:11:01 -07:00
2016-08-27 11:23:38 +08:00
2016-11-08 10:23:45 -08:00
2015-09-10 15:36:59 -04:00
2016-03-23 21:19:04 -07:00
2016-03-23 21:19:04 -07:00
2015-11-05 14:36:09 -05:00
2015-10-01 09:57:59 -07:00
2015-10-19 01:01:21 +02:00
2016-06-01 12:15:52 -07:00
2015-11-23 09:44:58 +01:00
2015-12-04 08:38:42 -07:00
2016-03-25 16:03:59 -07:00
2015-12-13 14:30:59 -08:00
2015-11-13 20:34:33 -05:00
2015-09-08 15:35:28 -07:00
2016-05-31 15:26:37 -07:00