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)
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>

No differences found