]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
clocksource: nomadik: Switch to sched_clock_register()
authorStephen Boyd <sboyd@codeaurora.org>
Thu, 18 Jul 2013 23:21:24 +0000 (16:21 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 30 Jul 2013 18:24:53 +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.

Cc: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/clocksource/nomadik-mtu.c

index 7d2c2c56f73c3044d5d4a6106975ab857ee076fa..2242cd3d618d95414cd181cc644999c71cadb4a7 100644 (file)
@@ -76,7 +76,7 @@ static struct delay_timer mtu_delay_timer;
  * local implementation which uses the clocksource to get some
  * better resolution when scheduling the kernel.
  */
-static u32 notrace nomadik_read_sched_clock(void)
+static u64 notrace nomadik_read_sched_clock(void)
 {
        if (unlikely(!mtu_base))
                return 0;
@@ -230,7 +230,7 @@ static void __init __nmdk_timer_init(void __iomem *base, int irq,
                       "mtu_0");
 
 #ifdef CONFIG_CLKSRC_NOMADIK_MTU_SCHED_CLOCK
-       setup_sched_clock(nomadik_read_sched_clock, 32, rate);
+       sched_clock_register(nomadik_read_sched_clock, 32, rate);
 #endif
 
        /* Timer 1 is used for events, register irq and clockevents */