Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62661
b: refs/heads/master
c: 26c671c
h: refs/heads/master
i:
  62659: 5ee9f58
v: v3
  • Loading branch information
Uwe Kleine-König authored and Russell King committed Jul 20, 2007
1 parent 4640a45 commit 4934eb1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3945a567d0c1d6721994a88f58f028c27d8249d2
refs/heads/master: 26c671c6b7c02bc9f9c42331e6ecbeccdf67164c
9 changes: 9 additions & 0 deletions trunk/arch/arm/mach-ns9xxx/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ static void ns9xxx_ack_irq_timer(unsigned int irq)
{
u32 tc = SYS_TC(irq - IRQ_TIMER0);

/*
* If the timer is programmed to halt on terminal count, the
* timer must be disabled before clearing the interrupt.
*/
if (REGGET(tc, SYS_TCx, REN) == 0) {
REGSET(tc, SYS_TCx, TEN, DIS);
SYS_TC(irq - IRQ_TIMER0) = tc;
}

REGSET(tc, SYS_TCx, INTC, SET);
SYS_TC(irq - IRQ_TIMER0) = tc;

Expand Down

0 comments on commit 4934eb1

Please sign in to comment.