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

sched_clock: Remove sched_clock_func() hook

Nobody is using sched_clock_func() anymore now that sched_clock
supports up to 64 bits. Remove the hook so that new code only
uses sched_clock_register().

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>

authored by

Stephen Boyd and committed by
John Stultz
b4042cea 65cd4f6c

+1 -10
-2
include/linux/sched_clock.h
··· 18 18 extern void sched_clock_register(u64 (*read)(void), int bits, 19 19 unsigned long rate); 20 20 21 - extern unsigned long long (*sched_clock_func)(void); 22 - 23 21 #endif
+1 -8
kernel/time/sched_clock.c
··· 63 63 return (cyc * mult) >> shift; 64 64 } 65 65 66 - static unsigned long long notrace sched_clock_32(void) 66 + unsigned long long notrace sched_clock(void) 67 67 { 68 68 u64 epoch_ns; 69 69 u64 epoch_cyc; ··· 168 168 { 169 169 read_sched_clock_32 = read; 170 170 sched_clock_register(read_sched_clock_32_wrapper, bits, rate); 171 - } 172 - 173 - unsigned long long __read_mostly (*sched_clock_func)(void) = sched_clock_32; 174 - 175 - unsigned long long notrace sched_clock(void) 176 - { 177 - return sched_clock_func(); 178 171 } 179 172 180 173 void __init sched_clock_postinit(void)