]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/thermal/fair_share.c
net: l3mdev: remove get_rtable method
[mirror_ubuntu-zesty-kernel.git] / drivers / thermal / fair_share.c
index 34fe36504a552cdaf112a6982483655f25dc2238..68bd1b56911850ee41dd7c508c7cad7f7c278ddf 100644 (file)
@@ -116,7 +116,9 @@ static int fair_share_throttle(struct thermal_zone_device *tz, int trip)
                instance->target = get_target_state(tz, cdev, percentage,
                                                    cur_trip_level);
 
+               mutex_lock(&instance->cdev->lock);
                instance->cdev->updated = false;
+               mutex_unlock(&instance->cdev->lock);
                thermal_cdev_update(cdev);
        }
        return 0;