Commit 71c0c341 authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by Eric Miao

ARM: mmp: Switch to using timer 1 as clocksource timer.

Signed-off-by: default avatarLennert Buytenhek <>
Acked-by: default avatarHaojian Zhuang <>
Signed-off-by: default avatarEric Miao <>
parent 7ce5ae39
......@@ -51,12 +51,12 @@ static inline uint32_t timer_read(void)
int delay = 100;
__raw_writel(1, TIMERS_VIRT_BASE + TMR_CVWR(0));
__raw_writel(1, TIMERS_VIRT_BASE + TMR_CVWR(1));
while (delay--)
return __raw_readl(TIMERS_VIRT_BASE + TMR_CVWR(0));
return __raw_readl(TIMERS_VIRT_BASE + TMR_CVWR(1));
unsigned long long notrace sched_clock(void)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment