Skip to content
Commit b6cc772f authored by Javi Merino's avatar Javi Merino Committed by Zhang Rui
Browse files

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: default avatarJavi Merino <javi.merino@arm.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 84ffe3ec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment