Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245419
b: refs/heads/master
c: fe12bc2
h: refs/heads/master
i:
  245417: d900228
  245415: 49b7e4d
v: v3
  • Loading branch information
Thomas Gleixner committed May 18, 2011
1 parent e7530fe commit d312bfc
Show file tree
Hide file tree
Showing 3 changed files with 17 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: fe0514348452f5b0ad7e842b0d71b8322b1297de
refs/heads/master: fe12bc2c996d3e492b2920e32ac79f7bbae3e15d
5 changes: 1 addition & 4 deletions trunk/include/linux/irqdesc.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ static inline void generic_handle_irq_desc(unsigned int irq, struct irq_desc *de
desc->handle_irq(irq, desc);
}

static inline void generic_handle_irq(unsigned int irq)
{
generic_handle_irq_desc(irq, irq_to_desc(irq));
}
int generic_handle_irq(unsigned int irq);

/* Test to see if a driver has successfully requested an irq */
static inline int irq_has_action(unsigned int irq)
Expand Down
15 changes: 15 additions & 0 deletions trunk/kernel/irq/irqdesc.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,21 @@ static int irq_expand_nr_irqs(unsigned int nr)

#endif /* !CONFIG_SPARSE_IRQ */

/**
* generic_handle_irq - Invoke the handler for a particular irq
* @irq: The irq number to handle
*
*/
int generic_handle_irq(unsigned int irq)
{
struct irq_desc *desc = irq_to_desc(irq);

if (!desc)
return -EINVAL;
generic_handle_irq_desc(irq, desc);
return 0;
}

/* Dynamic interrupt handling */

/**
Expand Down

0 comments on commit d312bfc

Please sign in to comment.