We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb42612 commit a5de11dCopy full SHA for a5de11d
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)))
@@ -534,6 +535,7 @@ static void allow_maximum_power(struct thermal_zone_device *tz)
534
535
mutex_unlock(&instance->cdev->lock);
536
thermal_cdev_update(instance->cdev);
537
}
538
+ mutex_unlock(&tz->lock);
539
540
541
/**
0 commit comments