Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219592
b: refs/heads/master
c: faadfb0
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Oct 27, 2010
1 parent c35ed0d commit 51c1a8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 26599a94dcadbed528a3e32a4f482a9766332f5b
refs/heads/master: faadfb04d92387bd7823d81e09d9b976332f9e44
7 changes: 6 additions & 1 deletion trunk/arch/sh/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ int show_interrupts(struct seq_file *p, void *v)
int i = *(loff_t *)v, j, prec;
struct irqaction *action;
struct irq_desc *desc;
struct irq_data *data;
struct irq_chip *chip;

if (i > nr_irqs)
return 0;
Expand All @@ -77,6 +79,9 @@ int show_interrupts(struct seq_file *p, void *v)
if (!desc)
return 0;

data = irq_get_irq_data(i);
chip = irq_data_get_irq_chip(data);

raw_spin_lock_irqsave(&desc->lock, flags);
for_each_online_cpu(j)
any_count |= kstat_irqs_cpu(i, j);
Expand All @@ -87,7 +92,7 @@ int show_interrupts(struct seq_file *p, void *v)
seq_printf(p, "%*d: ", prec, i);
for_each_online_cpu(j)
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
seq_printf(p, " %14s", desc->chip->name);
seq_printf(p, " %14s", chip->name);
seq_printf(p, "-%-8s", desc->name);

if (action) {
Expand Down

0 comments on commit 51c1a8b

Please sign in to comment.