mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
772ba2ffd2
commit
ea7113f70d
2 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@ config ARCH_NOMADIK
|
||||||
select ARM_AMBA
|
select ARM_AMBA
|
||||||
select ARM_VIC
|
select ARM_VIC
|
||||||
select CLKSRC_NOMADIK_MTU
|
select CLKSRC_NOMADIK_MTU
|
||||||
|
select CLKSRC_NOMADIK_MTU_SCHED_CLOCK
|
||||||
select COMMON_CLK
|
select COMMON_CLK
|
||||||
select CPU_ARM926T
|
select CPU_ARM926T
|
||||||
select GENERIC_CLOCKEVENTS
|
select GENERIC_CLOCKEVENTS
|
||||||
|
|
|
@ -67,7 +67,7 @@ static u32 clk_prescale;
|
||||||
static u32 nmdk_cycle; /* write-once */
|
static u32 nmdk_cycle; /* write-once */
|
||||||
static struct delay_timer mtu_delay_timer;
|
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
|
* Override the global weak sched_clock symbol with this
|
||||||
* local implementation which uses the clocksource to get some
|
* 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",
|
pr_err("timer: failed to initialize clock source %s\n",
|
||||||
"mtu_0");
|
"mtu_0");
|
||||||
|
|
||||||
#ifdef CONFIG_NOMADIK_MTU_SCHED_CLOCK
|
#ifdef CONFIG_CLKSRC_NOMADIK_MTU_SCHED_CLOCK
|
||||||
setup_sched_clock(nomadik_read_sched_clock, 32, rate);
|
setup_sched_clock(nomadik_read_sched_clock, 32, rate);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue