OSDN Git Service

thermal-core: Add a lock to tz_notify_trip()
authorJeff Bernard <jbernard@codeaurora.org>
Wed, 10 Dec 2014 03:09:48 +0000 (22:09 -0500)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:08:24 +0000 (11:08 -0700)
commit5059c6fe7118762ed970fab9463d9885f1a1ca04
treef0fbcfc8fd59b575bf100a38136ef01d9e4562e2
parentc6fb5b4539d58817df13b2010815ca6aff5d6224
thermal-core: Add a lock to tz_notify_trip()

Lock the sensor threshold list during notifications so it
isn't updated until notifications are sent out nor can
something else update thresholds until all notifications
are sent out.

Change-Id: Iafce75fa7fceda3de867044861e4a2e3eef47c95
Signed-off-by: Jeff Bernard <jbernard@codeaurora.org>
drivers/thermal/thermal_core.c