Thread (10 messages) 10 messages, 4 authors, 2021-03-10

Re: [PATCH V5 1/2] topology: Allow multiple entities to provide sched_freq_tick() callback

From: Will Deacon <will@kernel.org>
Date: 2021-03-09 09:20:00
Also in: linux-arm-kernel, lkml

On Tue, Mar 09, 2021 at 09:46:43AM +0530, Viresh Kumar wrote:
On 08-03-21, 14:52, Will Deacon wrote:
quoted
On Mon, Mar 01, 2021 at 12:21:17PM +0530, Viresh Kumar wrote:
quoted
+EXPORT_SYMBOL_GPL(topology_set_scale_freq_source);
I don't get why you need to export this in this patch. The arm64 topology
code is never built as a module.
quoted
+EXPORT_SYMBOL_GPL(topology_clear_scale_freq_source);
Same here.
quoted
+EXPORT_SYMBOL_GPL(freq_scale);
And here.
After this patch, any part of the kernel can use these
helpers/variables to run their own implementation of tick-freq-scale
and so this patch looked to be the right place for that to me.

And the second patch in the series updates the CPPC cpufreq driver
(tristate) to use these exported symbols, so we have the first user
who needs the exported symbols as well.
Ok, then how about putting the exports in their own patch that immediately
precedes the patch which uses them? I think that would make it much clearer.
quoted
This one probably wants a less generic name as well if it's going
to be exported.
x86 names it arch_freq_scale, perhaps we should stick to that instead.
Sounds like a improvement, thanks.

Will
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help