Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259077
b: refs/heads/master
c: 8c9f08f
h: refs/heads/master
i:
  259075: 943c6dc
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Greg Ungerer committed Jul 25, 2011
1 parent afcf914 commit 9d569b6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 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: 739735d5fea3c3997b2a659068a618b07bc9a73a
refs/heads/master: 8c9f08f9de38c9af3a946faf0cccd7fc46978443
10 changes: 10 additions & 0 deletions trunk/arch/m68k/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ asmlinkage void do_IRQ(int irq, struct pt_regs *regs)

set_irq_regs(oldregs);
}


/* The number of spurious interrupts */
atomic_t irq_err_count;

int arch_show_interrupts(struct seq_file *p, int prec)
{
seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count));
return 0;
}
2 changes: 1 addition & 1 deletion trunk/arch/m68k/platform/68328/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ ret_from_interrupt:
* Handler for uninitialized and spurious interrupts.
*/
ENTRY(bad_interrupt)
addql #1,num_spurious
addql #1,irq_err_count
rte

/*
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/m68k/platform/68328/ints.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ asmlinkage irqreturn_t inthandler7(void);

extern e_vector *_ramvec;

/* The number of spurious interrupts */
volatile unsigned int num_spurious;

/* The 68k family did not have a good way to determine the source
* of interrupts until later in the family. The EC000 core does
* not provide the vector number on the stack, we vector everything
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/m68k/platform/68360/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ ret_from_interrupt:
* Handler for uninitialized and spurious interrupts.
*/
bad_interrupt:
addql #1,num_spurious
addql #1,irq_err_count
rte

/*
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/m68k/platform/68360/ints.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ asmlinkage void inthandler(void);

extern void *_ramvec[];

/* The number of spurious interrupts */
volatile unsigned int num_spurious;

static void intc_irq_unmask(struct irq_data *d)
{
pquicc->intr_cimr |= (1 << d->irq);
Expand Down

0 comments on commit 9d569b6

Please sign in to comment.