summaryrefslogtreecommitdiff
path: root/kernel/time
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2013-07-18 16:21:19 -0700
committerAjay Nandakumar <anandakumarm@nvidia.com>2014-01-13 12:03:39 +0530
commit2ea993bc8616121c520e7d5775043d3f94ec19cc (patch)
tree34641959f7861014fbf0fad5435a81560c327912 /kernel/time
parent9d0d2b04cb0c40e3c177b3cd64af5136b5648ea1 (diff)
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(). Bug 1399318 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: John Stultz <john.stultz@linaro.org> (cherry picked from commit b4042ceaabbd913bc5b397ddd1e396eeb312d72f) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Change-Id: I893740dddcb2ded37acecf0ce87f7f6bcce0cfe8
Diffstat (limited to 'kernel/time')
-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)
return (cyc * mult) >> shift;
}
-static unsigned long long notrace sched_clock_32(void)
+unsigned long long notrace sched_clock(void)
{
u64 epoch_ns;
u64 epoch_cyc;
@@ -170,13 +170,6 @@ void __init setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate)
sched_clock_register(read_sched_clock_32_wrapper, bits, rate);
}
-unsigned long long __read_mostly (*sched_clock_func)(void) = sched_clock_32;
-
-unsigned long long notrace sched_clock(void)
-{
- return sched_clock_func();
-}
-
void __init sched_clock_postinit(void)
{
/*