projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'pci-v4.8-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
[cascardo/linux.git]
/
drivers
/
thermal
/
power_allocator.c
diff --git
a/drivers/thermal/power_allocator.c
b/drivers/thermal/power_allocator.c
index
2f1a863
..
b4d3116
100644
(file)
--- 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);
}
}