cpufreq,arm,arm64: restructure definitions of arch_set_freq_scale()
[sfrench/cifs-2.6.git] / include / linux / cpufreq.h
index 9f779fbdbe7bb0b81787045514e5c4a17bec6300..fa37b1c6644326467426335e27702c02cbbfe802 100644 (file)
@@ -1011,9 +1011,14 @@ static inline void sched_cpufreq_governor_change(struct cpufreq_policy *policy,
 extern void arch_freq_prepare_all(void);
 extern unsigned int arch_freq_get_on_cpu(int cpu);
 
-extern void arch_set_freq_scale(const struct cpumask *cpus,
-                               unsigned long cur_freq,
-                               unsigned long max_freq);
+#ifndef arch_set_freq_scale
+static __always_inline
+void arch_set_freq_scale(const struct cpumask *cpus,
+                        unsigned long cur_freq,
+                        unsigned long max_freq)
+{
+}
+#endif
 
 /* the following are really really optional */
 extern struct freq_attr cpufreq_freq_attr_scaling_available_freqs;