diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-04-04 14:58:58 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-04-04 14:58:58 +0200 |
| commit | 35ed8fa05fb81fae4eb92ccc55dd6007d409e2f3 (patch) | |
| tree | 27089fa588076cee964f7f2b4aa08164f075aff2 /include/linux | |
| parent | 6dcf9d0064ce2f3e3dfe5755f98b93abe6a98e1e (diff) | |
| parent | 2e00c2dcc5325af04e2dfbb29281ced1c724ab81 (diff) | |
Merge back earlier cpufreq material for 7.1
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cpufreq.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index cc894fc389710..9b10eb486ece5 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -79,8 +79,9 @@ struct cpufreq_policy { * called, but you're in IRQ context */ struct freq_constraints constraints; - struct freq_qos_request *min_freq_req; - struct freq_qos_request *max_freq_req; + struct freq_qos_request min_freq_req; + struct freq_qos_request max_freq_req; + struct freq_qos_request boost_freq_req; struct cpufreq_frequency_table *freq_table; enum cpufreq_table_sorting freq_table_sorted; @@ -232,7 +233,7 @@ static inline bool policy_is_inactive(struct cpufreq_policy *policy) static inline bool policy_is_shared(struct cpufreq_policy *policy) { - return cpumask_weight(policy->cpus) > 1; + return cpumask_nth(1, policy->cpus) < nr_cpumask_bits; } #ifdef CONFIG_CPU_FREQ |
