We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50eeba8 commit d8ccbd1Copy full SHA for d8ccbd1
drivers/thermal/power_allocator.c
@@ -523,6 +523,7 @@ static void allow_maximum_power(struct thermal_zone_device *tz)
523
struct thermal_instance *instance;
524
struct power_allocator_params *params = tz->governor_data;
525
526
+ mutex_lock(&tz->lock);
527
list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
528
if ((instance->trip != params->trip_max_desired_temperature) ||
529
(!cdev_is_power_actor(instance->cdev)))
@@ -532,6 +533,7 @@ static void allow_maximum_power(struct thermal_zone_device *tz)
532
533
instance->cdev->updated = false;
534
thermal_cdev_update(instance->cdev);
535
}
536
+ mutex_unlock(&tz->lock);
537
538
539
/**
0 commit comments