Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43379
b: refs/heads/master
c: bf46878
h: refs/heads/master
i:
  43377: fb042aa
  43375: 58ad10b
v: v3
  • Loading branch information
Nicolas Pitre authored and Russell King committed Nov 30, 2006
1 parent 4fe4b1d commit 3414871
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: 10dd5ce28d78e2440e8fa1135d17e33399d75340
refs/heads/master: bf46878c4ef4cf04a3564f0ff2e7daae353ee2e2
7 changes: 4 additions & 3 deletions trunk/arch/arm/mach-sa1100/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ static struct irqaction sa1100_timer_irq = {
static void __init sa1100_timer_init(void)
{
struct timespec tv;
unsigned long flags;

set_rtc = sa1100_set_rtc;

Expand All @@ -126,12 +127,12 @@ static void __init sa1100_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, &sa1100_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 3414871

Please sign in to comment.