]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/thermal/gov_bang_bang.c
thermal: add Intel BXT WhiskeyCove PMIC thermal driver
[karo-tx-linux.git] / drivers / thermal / gov_bang_bang.c
index fc52016d4e85be590e15f4e1976b8378d2c456d2..bb118a152cbbde3c570f90fb5355bc04afe54beb 100644 (file)
@@ -71,7 +71,9 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip)
                dev_dbg(&instance->cdev->device, "target=%d\n",
                                        (int)instance->target);
 
+               mutex_lock(&instance->cdev->lock);
                instance->cdev->updated = false; /* cdev needs update */
+               mutex_unlock(&instance->cdev->lock);
        }
 
        mutex_unlock(&tz->lock);