Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275395
b: refs/heads/master
c: 4045513
h: refs/heads/master
i:
  275393: 589a703
  275391: 56883d8
v: v3
  • Loading branch information
Geert Uytterhoeven committed Nov 8, 2011
1 parent f9f6ad0 commit d946aa0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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: bc7485acd09405d9544783d773ee040af4a5c861
refs/heads/master: 4045513286462a3c12140fac0559f09bcb5e7f10
14 changes: 10 additions & 4 deletions trunk/arch/m68k/sun3/sun3ints.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,19 @@ void sun3_disable_irq(unsigned int irq)

static irqreturn_t sun3_int7(int irq, void *dev_id)
{
unsigned int cnt;

*sun3_intreg |= (1 << irq);
if (!(kstat_cpu(0).irqs[irq] % 2000))
sun3_leds(led_pattern[(kstat_cpu(0).irqs[irq] % 16000) / 2000]);
cnt = kstat_irqs_cpu(irq, 0);
if (!(cnt % 2000))
sun3_leds(led_pattern[cnt % 16000 / 2000]);
return IRQ_HANDLED;
}

static irqreturn_t sun3_int5(int irq, void *dev_id)
{
unsigned int cnt;

#ifdef CONFIG_SUN3
intersil_clear();
#endif
Expand All @@ -68,8 +73,9 @@ static irqreturn_t sun3_int5(int irq, void *dev_id)
#endif
xtime_update(1);
update_process_times(user_mode(get_irq_regs()));
if (!(kstat_cpu(0).irqs[irq] % 20))
sun3_leds(led_pattern[(kstat_cpu(0).irqs[irq] % 160) / 20]);
cnt = kstat_irqs_cpu(irq, 0);
if (!(cnt % 20))
sun3_leds(led_pattern[cnt % 160 / 20]);
return IRQ_HANDLED;
}

Expand Down

0 comments on commit d946aa0

Please sign in to comment.