Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135793
b: refs/heads/master
c: bedd30d
h: refs/heads/master
i:
  135791: 0c7223d
v: v3
  • Loading branch information
Thomas Gleixner committed Mar 13, 2009
1 parent 187602f commit 65e269e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 21 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: c8e2aeef0b8ac9fb8821b8b3734c031579d0b77a
refs/heads/master: bedd30d986a05e32dc3eab874e4b9ed8a38058bb
4 changes: 2 additions & 2 deletions trunk/include/linux/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static inline int irq_balancing_disabled(unsigned int irq)
}

/* Handle irq action chains: */
extern int handle_IRQ_event(unsigned int irq, struct irqaction *action);
extern irqreturn_t handle_IRQ_event(unsigned int irq, struct irqaction *action);

/*
* Built-in IRQ handlers for various IRQ types,
Expand Down Expand Up @@ -325,7 +325,7 @@ static inline void generic_handle_irq(unsigned int irq)

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

/* Resending of interrupts :*/
void check_irq_resend(struct irq_desc *desc, unsigned int irq);
Expand Down
28 changes: 10 additions & 18 deletions trunk/include/linux/irqreturn.h
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
/* irqreturn.h */
#ifndef _LINUX_IRQRETURN_H
#define _LINUX_IRQRETURN_H

/*
* For 2.4.x compatibility, 2.4.x can use
*
* typedef void irqreturn_t;
* #define IRQ_NONE
* #define IRQ_HANDLED
* #define IRQ_RETVAL(x)
*
* To mix old-style and new-style irq handler returns.
*
* IRQ_NONE means we didn't handle it.
* IRQ_HANDLED means that we did have a valid interrupt and handled it.
* IRQ_RETVAL(x) selects on the two depending on x being non-zero (for handled)
/**
* enum irqreturn
* @IRQ_NONE interrupt was not from this device
* @IRQ_HANDLED interrupt was handled by this device
*/
typedef int irqreturn_t;
enum irqreturn {
IRQ_NONE,
IRQ_HANDLED,
};

#define IRQ_NONE (0)
#define IRQ_HANDLED (1)
#define IRQ_RETVAL(x) ((x) != 0)
typedef enum irqreturn irqreturn_t;
#define IRQ_RETVAL(x) ((x) != IRQ_NONE)

#endif

0 comments on commit 65e269e

Please sign in to comment.