thermal: lock the thermal zone when switching governors
authorJavi Merino <javi.merino@arm.com>
Tue, 25 Nov 2014 16:00:33 +0000 (16:00 +0000)
committerZhang Rui <rui.zhang@intel.com>
Mon, 8 Dec 2014 04:10:44 +0000 (12:10 +0800)
commitb6cc772f64ac7d1917770406844b73a94ca5ef06
tree91a4036308f97df59865b02f5b941b799ddd1755
parent84ffe3ecc2c8b3effc41c0babd2cc24f1edb2aab
thermal: lock the thermal zone when switching governors

Currently, userspace can request a governor change while the governor
itself is running.  Grab the thermal zone lock when changing the
governor to prevent this race.

Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c
This page took 0.026989 seconds and 5 git commands to generate.