diff options
author | 2019-12-19 16:10:52 +0100 | |
---|---|---|
committer | 2019-12-19 16:10:52 +0100 | |
commit | 505b308b6944a91fa8437a3fd9f2dab29b5c3c88 (patch) | |
tree | 9be5d3ba5466f9f83942702ad5e16d54ee7fd26a /include | |
parent | Merge branches 'pm-cpuidle' and 'acpi-pm' (diff) | |
parent | cpufreq: Avoid leaving stale IRQ work items during CPU offline (diff) | |
download | linux-505b308b6944a91fa8437a3fd9f2dab29b5c3c88.tar.gz linux-505b308b6944a91fa8437a3fd9f2dab29b5c3c88.tar.bz2 linux-505b308b6944a91fa8437a3fd9f2dab29b5c3c88.zip |
Merge branch 'pm-cpufreq'
* pm-cpufreq:
cpufreq: Avoid leaving stale IRQ work items during CPU offline
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cpufreq.h | 11 | ||||
-rw-r--r-- | include/linux/sched/cpufreq.h | 3 |
2 files changed, 3 insertions, 11 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 92d5fdc8154e..31b1b0e03df8 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -595,17 +595,6 @@ struct governor_attr { size_t count); }; -static inline bool cpufreq_this_cpu_can_update(struct cpufreq_policy *policy) -{ - /* - * Allow remote callbacks if: - * - dvfs_possible_from_any_cpu flag is set - * - the local and remote CPUs share cpufreq policy - */ - return policy->dvfs_possible_from_any_cpu || - cpumask_test_cpu(smp_processor_id(), policy->cpus); -} - /********************************************************************* * FREQUENCY TABLE HELPERS * *********************************************************************/ diff --git a/include/linux/sched/cpufreq.h b/include/linux/sched/cpufreq.h index afa940cd50dc..cc6bcc1e96bc 100644 --- a/include/linux/sched/cpufreq.h +++ b/include/linux/sched/cpufreq.h @@ -12,6 +12,8 @@ #define SCHED_CPUFREQ_MIGRATION (1U << 1) #ifdef CONFIG_CPU_FREQ +struct cpufreq_policy; + struct update_util_data { void (*func)(struct update_util_data *data, u64 time, unsigned int flags); }; @@ -20,6 +22,7 @@ void cpufreq_add_update_util_hook(int cpu, struct update_util_data *data, void (*func)(struct update_util_data *data, u64 time, unsigned int flags)); void cpufreq_remove_update_util_hook(int cpu); +bool cpufreq_this_cpu_can_update(struct cpufreq_policy *policy); static inline unsigned long map_util_freq(unsigned long util, unsigned long freq, unsigned long cap) |