clocksource: nomadik-mtu: fix up clocksource/timer
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 20 Apr 2013 14:09:17 +0000 (16:09 +0200)
committerOlof Johansson <olof@lixom.net>
Sat, 27 Apr 2013 00:10:46 +0000 (17:10 -0700)
The Nomadik clocksource driver has had a bad define making it
impossible to use it for sched_clock() for a while. Fix this
and also enable it for the Nomadik.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-nomadik/Kconfig
drivers/clocksource/nomadik-mtu.c

index 3213badf25d8f1f16a181e6af1b547fef14aac13..9b9d105f194ca75876aef60a1d2b7b9772be2d7a 100644 (file)
@@ -5,6 +5,7 @@ config ARCH_NOMADIK
        select ARM_AMBA
        select ARM_VIC
        select CLKSRC_NOMADIK_MTU
+       select CLKSRC_NOMADIK_MTU_SCHED_CLOCK
        select COMMON_CLK
        select CPU_ARM926T
        select GENERIC_CLOCKEVENTS
index 071f6eadfea24d02134e391d6e65aae9ba9aaa75..e405531e1cc5ceb620818b10b63e42e31d1f2acc 100644 (file)
@@ -67,7 +67,7 @@ static u32 clk_prescale;
 static u32 nmdk_cycle;         /* write-once */
 static struct delay_timer mtu_delay_timer;
 
-#ifdef CONFIG_NOMADIK_MTU_SCHED_CLOCK
+#ifdef CONFIG_CLKSRC_NOMADIK_MTU_SCHED_CLOCK
 /*
  * Override the global weak sched_clock symbol with this
  * local implementation which uses the clocksource to get some
@@ -233,7 +233,7 @@ void __init nmdk_timer_init(void __iomem *base, int irq)
                pr_err("timer: failed to initialize clock source %s\n",
                       "mtu_0");
 
-#ifdef CONFIG_NOMADIK_MTU_SCHED_CLOCK
+#ifdef CONFIG_CLKSRC_NOMADIK_MTU_SCHED_CLOCK
        setup_sched_clock(nomadik_read_sched_clock, 32, rate);
 #endif