]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
clocksource: dw_apb_timer_of: Switch to sched_clock_register()
authorStephen Boyd <sboyd@codeaurora.org>
Thu, 18 Jul 2013 23:21:22 +0000 (16:21 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 30 Jul 2013 18:24:52 +0000 (11:24 -0700)
The 32 bit sched_clock interface now supports 64 bits. Upgrade to
the 64 bit function to allow us to remove the 32 bit registration
interface.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/clocksource/dw_apb_timer_of.c

index 4cbae4f762b199db708a56d4814a8be578d14024..003b2309f463d0af1dc752366010a7a312f1b13e 100644 (file)
@@ -106,7 +106,7 @@ static void add_clocksource(struct device_node *source_timer)
        sched_rate = rate;
 }
 
-static u32 read_sched_clock(void)
+static u64 read_sched_clock(void)
 {
        return __raw_readl(sched_io_base);
 }
@@ -128,7 +128,7 @@ static void init_sched_clock(void)
                of_node_put(sched_timer);
        }
 
-       setup_sched_clock(read_sched_clock, 32, sched_rate);
+       sched_clock_register(read_sched_clock, 32, sched_rate);
 }
 
 static int num_called;