diff options
Diffstat (limited to 'drivers/thermal/power_allocator.c')
-rw-r--r-- | drivers/thermal/power_allocator.c | 2 |
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) | |||
529 | continue; | 529 | continue; |
530 | 530 | ||
531 | instance->target = 0; | 531 | instance->target = 0; |
532 | mutex_lock(&instance->cdev->lock); | ||
532 | instance->cdev->updated = false; | 533 | instance->cdev->updated = false; |
534 | mutex_unlock(&instance->cdev->lock); | ||
533 | thermal_cdev_update(instance->cdev); | 535 | thermal_cdev_update(instance->cdev); |
534 | } | 536 | } |
535 | } | 537 | } |