Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43380
b: refs/heads/master
c: 46ec0ce
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Pitre authored and Russell King committed Nov 30, 2006
1 parent 3414871 commit 584538d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bf46878c4ef4cf04a3564f0ff2e7daae353ee2e2
refs/heads/master: 46ec0ce8ce7eab6242188ea8a596538753c53b22
7 changes: 4 additions & 3 deletions trunk/arch/arm/mach-pxa/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ static struct irqaction pxa_timer_irq = {
static void __init pxa_timer_init(void)
{
struct timespec tv;
unsigned long flags;

set_rtc = pxa_set_rtc;

Expand All @@ -132,12 +133,12 @@ static void __init pxa_timer_init(void)
do_settimeofday(&tv);

OIER = 0; /* disable any timer interrupts */
OSCR = LATCH*2; /* push OSCR out of the way */
OSMR0 = LATCH; /* set initial match */
OSSR = 0xf; /* clear status on all timers */
setup_irq(IRQ_OST0, &pxa_timer_irq);
local_irq_save(flags);
OIER = OIER_E0; /* enable match on timer 0 to cause interrupts */
OSCR = 0; /* initialize free-running timer */
OSMR0 = OSCR + LATCH; /* set initial match */
local_irq_restore(flags);
}

#ifdef CONFIG_NO_IDLE_HZ
Expand Down

0 comments on commit 584538d

Please sign in to comment.