diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/acpi/processor_thermal.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/acpi/processor_thermal.c')
| -rw-r--r-- | drivers/acpi/processor_thermal.c | 14 | 
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/acpi/processor_thermal.c b/drivers/acpi/processor_thermal.c index e534fd49a67e..b7c6287eccca 100644 --- a/drivers/acpi/processor_thermal.c +++ b/drivers/acpi/processor_thermal.c @@ -140,9 +140,13 @@ void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy)  		ret = freq_qos_add_request(&policy->constraints,  					   &pr->thermal_req,  					   FREQ_QOS_MAX, INT_MAX); -		if (ret < 0) +		if (ret < 0) {  			pr_err("Failed to add freq constraint for CPU%d (%d)\n",  			       cpu, ret); +			continue; +		} + +		thermal_cooling_device_update(pr->cdev);  	}  } @@ -153,8 +157,12 @@ void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy)  	for_each_cpu(cpu, policy->related_cpus) {  		struct acpi_processor *pr = per_cpu(processors, cpu); -		if (pr) -			freq_qos_remove_request(&pr->thermal_req); +		if (!pr) +			continue; + +		freq_qos_remove_request(&pr->thermal_req); + +		thermal_cooling_device_update(pr->cdev);  	}  }  #else				/* ! CONFIG_CPU_FREQ */  |