Commit 35108fb9 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Russell King

[ARM] 4064/1: make pxa_get_cycles() static

... and fix a comment as well.
Signed-off-by: default avatarNicolas Pitre <nico@cam.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 2ca2c570
...@@ -101,7 +101,7 @@ static struct irqaction pxa_timer_irq = { ...@@ -101,7 +101,7 @@ static struct irqaction pxa_timer_irq = {
.handler = pxa_timer_interrupt, .handler = pxa_timer_interrupt,
}; };
cycle_t pxa_get_cycles(void) static cycle_t pxa_get_cycles(void)
{ {
return OSCR; return OSCR;
} }
...@@ -134,13 +134,13 @@ static void __init pxa_timer_init(void) ...@@ -134,13 +134,13 @@ static void __init pxa_timer_init(void)
OSMR0 = OSCR + LATCH; /* set initial match */ OSMR0 = OSCR + LATCH; /* set initial match */
local_irq_restore(flags); local_irq_restore(flags);
/* on PXA OSCR runs continiously and is not written to, so we can use it /*
* as clock source directly. * OSCR runs continuously on PXA and is not written to,
* so we can use it as clock source directly.
*/ */
clocksource_pxa.mult = clocksource_pxa.mult =
clocksource_hz2mult(CLOCK_TICK_RATE, clocksource_pxa.shift); clocksource_hz2mult(CLOCK_TICK_RATE, clocksource_pxa.shift);
clocksource_register(&clocksource_pxa); clocksource_register(&clocksource_pxa);
} }
#ifdef CONFIG_NO_IDLE_HZ #ifdef CONFIG_NO_IDLE_HZ
......
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