Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch_topology: Export arch_freq_scale and helpers

It is possible now for other parts of the kernel to provide their own
implementation of sched_freq_tick() and they can very well be modules
themselves (like CPPC cpufreq driver, which is going to use these in a
later commit).

Export arch_freq_scale and topology_{set|clear}_scale_freq_source().

Reviewed-by: Ionela Voinescu <ionela.voinescu@arm.com>
Tested-by: Ionela Voinescu <ionela.voinescu@arm.com>
Tested-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

+3
+3
drivers/base/arch_topology.c
··· 78 78 79 79 update_scale_freq_invariant(true); 80 80 } 81 + EXPORT_SYMBOL_GPL(topology_set_scale_freq_source); 81 82 82 83 void topology_clear_scale_freq_source(enum scale_freq_source source, 83 84 const struct cpumask *cpus) ··· 97 96 98 97 update_scale_freq_invariant(false); 99 98 } 99 + EXPORT_SYMBOL_GPL(topology_clear_scale_freq_source); 100 100 101 101 void topology_scale_freq_tick(void) 102 102 { ··· 108 106 } 109 107 110 108 DEFINE_PER_CPU(unsigned long, arch_freq_scale) = SCHED_CAPACITY_SCALE; 109 + EXPORT_PER_CPU_SYMBOL_GPL(arch_freq_scale); 111 110 112 111 void topology_set_freq_scale(const struct cpumask *cpus, unsigned long cur_freq, 113 112 unsigned long max_freq)