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

Configure Feed

Select the types of activity you want to include in your feed.

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

+2 -2
+2 -2
kernel/time/sched_clock.c
··· 174 174 return HRTIMER_RESTART; 175 175 } 176 176 177 - void __init 178 - sched_clock_register(u64 (*read)(void), int bits, unsigned long rate) 177 + void sched_clock_register(u64 (*read)(void), int bits, unsigned long rate) 179 178 { 180 179 u64 res, wrap, new_mask, new_epoch, cyc, ns; 181 180 u32 new_mult, new_shift; ··· 246 247 247 248 pr_debug("Registered %pS as sched_clock source\n", read); 248 249 } 250 + EXPORT_SYMBOL_GPL(sched_clock_register); 249 251 250 252 void __init generic_sched_clock_init(void) 251 253 {