summaryrefslogtreecommitdiff
path: root/drivers/thermal/power_allocator.c
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2016-08-08 10:59:35 +0800
committerZhang Rui <rui.zhang@intel.com>2016-08-08 10:59:35 +0800
commit1577ddfac75ff9690ebd0d210bc7f1345c9d29ef (patch)
treeaf9d348ccc26df846c7c69e62624465f42205745 /drivers/thermal/power_allocator.c
parent70c50ee72eebb3d1e3aae7450269fd8d8074c610 (diff)
parent165989a5b667b90589f21c8affe496ad21f08591 (diff)
Merge branches 'thermal-intel' and 'thermal-core' into next
Diffstat (limited to 'drivers/thermal/power_allocator.c')
-rw-r--r--drivers/thermal/power_allocator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/power_allocator.c b/drivers/thermal/power_allocator.c
index 2f1a863a8e15..b4d3116cfdaf 100644
--- a/drivers/thermal/power_allocator.c
+++ b/drivers/thermal/power_allocator.c
@@ -529,7 +529,9 @@ static void allow_maximum_power(struct thermal_zone_device *tz)
continue;
instance->target = 0;
+ mutex_lock(&instance->cdev->lock);
instance->cdev->updated = false;
+ mutex_unlock(&instance->cdev->lock);
thermal_cdev_update(instance->cdev);
}
}