diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-04-20 16:09:17 +0200 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-04-27 02:10:46 +0200 |
commit | ea7113f70d6f91dee0d7afd8580c8cac06b6d222 (patch) | |
tree | e395d66efd8aae4cfb237ae82a3167695240fb8f /drivers/clocksource/nomadik-mtu.c | |
parent | Merge branch 'samsung/exynos-multiplatform' into next/multiplatform (diff) | |
download | linux-ea7113f70d6f91dee0d7afd8580c8cac06b6d222.tar.xz linux-ea7113f70d6f91dee0d7afd8580c8cac06b6d222.zip |
clocksource: nomadik-mtu: fix up clocksource/timer
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>
Diffstat (limited to 'drivers/clocksource/nomadik-mtu.c')
-rw-r--r-- | drivers/clocksource/nomadik-mtu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clocksource/nomadik-mtu.c b/drivers/clocksource/nomadik-mtu.c index 071f6eadfea2..e405531e1cc5 100644 --- a/drivers/clocksource/nomadik-mtu.c +++ b/drivers/clocksource/nomadik-mtu.c @@ -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 |