aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/sched_clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/sched_clock.c')
-rw-r--r--kernel/time/sched_clock.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c
index f388baeaf2b6..68b799375981 100644
--- a/kernel/time/sched_clock.c
+++ b/kernel/time/sched_clock.c
@@ -63,7 +63,7 @@ static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift)
63 return (cyc * mult) >> shift; 63 return (cyc * mult) >> shift;
64} 64}
65 65
66static unsigned long long notrace sched_clock_32(void) 66unsigned long long notrace sched_clock(void)
67{ 67{
68 u64 epoch_ns; 68 u64 epoch_ns;
69 u64 epoch_cyc; 69 u64 epoch_cyc;
@@ -170,13 +170,6 @@ void __init setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate)
170 sched_clock_register(read_sched_clock_32_wrapper, bits, rate); 170 sched_clock_register(read_sched_clock_32_wrapper, bits, rate);
171} 171}
172 172
173unsigned long long __read_mostly (*sched_clock_func)(void) = sched_clock_32;
174
175unsigned long long notrace sched_clock(void)
176{
177 return sched_clock_func();
178}
179
180void __init sched_clock_postinit(void) 173void __init sched_clock_postinit(void)
181{ 174{
182 /* 175 /*