From: Zhang Rui Date: Tue, 24 Jul 2012 08:56:21 +0000 (+0800) Subject: Thermal: Introduce locking for cdev.thermal_instances list. X-Git-Tag: v3.7-rc1~12^2^3^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4a821ce6ed41970d0155f55067fb07009974fbe;p=pandora-kernel.git Thermal: Introduce locking for cdev.thermal_instances list. we need to go over all the thermal_instance list of a cooling device to decide which cooling state to put the cooling device to. But at this time, as a cooling device may be referenced in multiple thermal zones, we need to lock the list first in case another thermal zone is updating this cooling device. Signed-off-by: Zhang Rui Reviewed-by: Rafael J. Wysocki Reviewed-by: Eduardo Valentin --- Reading git-diff-tree failed