diff options
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index eeef1a3086d1..aa9d5b87b4f8 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h | |||
@@ -2070,19 +2070,13 @@ static inline void cpufreq_update_util(struct rq *rq, unsigned int flags) | |||
2070 | { | 2070 | { |
2071 | struct update_util_data *data; | 2071 | struct update_util_data *data; |
2072 | 2072 | ||
2073 | data = rcu_dereference_sched(*this_cpu_ptr(&cpufreq_update_util_data)); | 2073 | data = rcu_dereference_sched(*per_cpu_ptr(&cpufreq_update_util_data, |
2074 | cpu_of(rq))); | ||
2074 | if (data) | 2075 | if (data) |
2075 | data->func(data, rq_clock(rq), flags); | 2076 | data->func(data, rq_clock(rq), flags); |
2076 | } | 2077 | } |
2077 | |||
2078 | static inline void cpufreq_update_this_cpu(struct rq *rq, unsigned int flags) | ||
2079 | { | ||
2080 | if (cpu_of(rq) == smp_processor_id()) | ||
2081 | cpufreq_update_util(rq, flags); | ||
2082 | } | ||
2083 | #else | 2078 | #else |
2084 | static inline void cpufreq_update_util(struct rq *rq, unsigned int flags) {} | 2079 | static inline void cpufreq_update_util(struct rq *rq, unsigned int flags) {} |
2085 | static inline void cpufreq_update_this_cpu(struct rq *rq, unsigned int flags) {} | ||
2086 | #endif /* CONFIG_CPU_FREQ */ | 2080 | #endif /* CONFIG_CPU_FREQ */ |
2087 | 2081 | ||
2088 | #ifdef arch_scale_freq_capacity | 2082 | #ifdef arch_scale_freq_capacity |