Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251377
b: refs/heads/master
c: e9e334c
h: refs/heads/master
i:
  251375: b2fe7ef
v: v3
  • Loading branch information
Mike Frysinger committed May 25, 2011
1 parent a39b88d commit 4778c6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 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: bc6b92f8c31788a2fdc65d9be903983e5da78921
refs/heads/master: e9e334c35ec3cd262d13640b50b67a29870a7105
25 changes: 8 additions & 17 deletions trunk/arch/blackfin/mach-common/ints-priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,19 @@ unsigned long bfin_irq_flags = 0x1f;
EXPORT_SYMBOL(bfin_irq_flags);
#endif

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

#ifdef CONFIG_PM
unsigned long bfin_sic_iwr[3]; /* Up to 3 SIC_IWRx registers */
unsigned vr_wakeup;
#endif

struct ivgx {
static struct ivgx {
/* irq number for request_irq, available in mach-bf5xx/irq.h */
unsigned int irqno;
/* corresponding bit in the SIC_ISR register */
unsigned int isrflag;
} ivg_table[NR_PERI_INTS];

struct ivg_slice {
static struct ivg_slice {
/* position of first irq in ivg_table for given ivg */
struct ivgx *ifirst;
struct ivgx *istop;
Expand Down Expand Up @@ -1331,10 +1328,8 @@ void do_irq(int vec, struct pt_regs *fp)
sic_status[2] = bfin_read_SIC_ISR2() & bfin_read_SIC_IMASK2();
# endif
for (;; ivg++) {
if (ivg >= ivg_stop) {
atomic_inc(&num_spurious);
if (ivg >= ivg_stop)
return;
}
if (sic_status[(ivg->irqno - IVG7) / 32] & ivg->isrflag)
break;
}
Expand All @@ -1344,10 +1339,9 @@ void do_irq(int vec, struct pt_regs *fp)
sic_status = bfin_read_SIC_IMASK() & bfin_read_SIC_ISR();

for (;; ivg++) {
if (ivg >= ivg_stop) {
atomic_inc(&num_spurious);
if (ivg >= ivg_stop)
return;
} else if (sic_status & ivg->isrflag)
if (sic_status & ivg->isrflag)
break;
}
#endif
Expand Down Expand Up @@ -1403,10 +1397,8 @@ asmlinkage int __ipipe_grab_irq(int vec, struct pt_regs *regs)
sic_status[2] = bfin_read_SIC_ISR2() & bfin_read_SIC_IMASK2();
# endif
for (;; ivg++) {
if (ivg >= ivg_stop) {
atomic_inc(&num_spurious);
if (ivg >= ivg_stop)
return 0;
}
if (sic_status[(ivg->irqno - IVG7) / 32] & ivg->isrflag)
break;
}
Expand All @@ -1416,10 +1408,9 @@ asmlinkage int __ipipe_grab_irq(int vec, struct pt_regs *regs)
sic_status = bfin_read_SIC_IMASK() & bfin_read_SIC_ISR();

for (;; ivg++) {
if (ivg >= ivg_stop) {
atomic_inc(&num_spurious);
if (ivg >= ivg_stop)
return 0;
} else if (sic_status & ivg->isrflag)
if (sic_status & ivg->isrflag)
break;
}
#endif
Expand Down

0 comments on commit 4778c6c

Please sign in to comment.