Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31075
b: refs/heads/master
c: dae8620
h: refs/heads/master
i:
  31073: 80daff2
  31071: a0e6c8f
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jun 29, 2006
1 parent 98e0041 commit 682a13d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 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: 6a6de9ef5850d063c3d3fb50784bfe3a6d0712c6
refs/heads/master: dae8620421833bb2e9a01c4ccc42bdc3759b81df
5 changes: 5 additions & 0 deletions trunk/arch/i386/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ fastcall unsigned int do_IRQ(struct pt_regs *regs)
}
#endif

if (!irq_desc[irq].handle_irq) {
__do_IRQ(irq, regs);
goto out_exit;
}
#ifdef CONFIG_4KSTACKS

curctx = (union irq_ctx *) current_thread_info();
Expand Down Expand Up @@ -121,6 +125,7 @@ fastcall unsigned int do_IRQ(struct pt_regs *regs)
#endif
__do_IRQ(irq, regs);

out_exit:
irq_exit();

return 1;
Expand Down
27 changes: 16 additions & 11 deletions trunk/include/linux/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,6 @@ typedef struct irq_desc irq_desc_t;
*/
#include <asm/hw_irq.h>

/*
* Architectures call this to let the generic IRQ layer
* handle an interrupt:
*/
static inline void generic_handle_irq(unsigned int irq, struct pt_regs *regs)
{
struct irq_desc *desc = irq_desc + irq;

desc->handle_irq(irq, desc, regs);
}

extern int setup_irq(unsigned int irq, struct irqaction *new);

#ifdef CONFIG_GENERIC_HARDIRQS
Expand Down Expand Up @@ -324,6 +313,22 @@ handle_irq_name(void fastcall (*handle)(unsigned int, struct irq_desc *,
*/
extern fastcall unsigned int __do_IRQ(unsigned int irq, struct pt_regs *regs);

/*
* Architectures call this to let the generic IRQ layer
* handle an interrupt. If the descriptor is attached to an
* irqchip-style controller then we call the ->handle_irq() handler,
* and it calls __do_IRQ() if it's attached to an irqtype-style controller.
*/
static inline void generic_handle_irq(unsigned int irq, struct pt_regs *regs)
{
struct irq_desc *desc = irq_desc + irq;

if (likely(desc->handle_irq))
desc->handle_irq(irq, desc, regs);
else
__do_IRQ(irq, regs);
}

/* Handling of unhandled and spurious interrupts: */
extern void note_interrupt(unsigned int irq, struct irq_desc *desc,
int action_ret, struct pt_regs *regs);
Expand Down

0 comments on commit 682a13d

Please sign in to comment.