mirror of
https://github.com/torvalds/linux.git
synced 2026-01-24 23:16:46 +00:00
time/sched_clock: Export symbol for sched_clock register function
The timer drivers could be converted into modules. The different functions to register the clocksource or the clockevent are already exporting their symbols for modules but the sched_clock_register() function is missing. Export the symbols so the drivers using this function can be converted into modules. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Carlos Llamas <cmllamas@google.com> Reviewed-by: Will McVicker <willmcvicker@google.com> Acked-by: John Stultz <jstultz@google.com> Link: https://lore.kernel.org/r/20250602151853.1942521-8-daniel.lezcano@linaro.org
This commit is contained in:
@@ -174,8 +174,7 @@ static enum hrtimer_restart sched_clock_poll(struct hrtimer *hrt)
|
||||
return HRTIMER_RESTART;
|
||||
}
|
||||
|
||||
void __init
|
||||
sched_clock_register(u64 (*read)(void), int bits, unsigned long rate)
|
||||
void sched_clock_register(u64 (*read)(void), int bits, unsigned long rate)
|
||||
{
|
||||
u64 res, wrap, new_mask, new_epoch, cyc, ns;
|
||||
u32 new_mult, new_shift;
|
||||
@@ -247,6 +246,7 @@ sched_clock_register(u64 (*read)(void), int bits, unsigned long rate)
|
||||
|
||||
pr_debug("Registered %pS as sched_clock source\n", read);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sched_clock_register);
|
||||
|
||||
void __init generic_sched_clock_init(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user