aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-10 22:25:31 +0100
committerThomas Gleixner <tglx@linutronix.de>2011-02-19 12:58:22 +0100
commite1ef824146131709d7466e37f889f2dab24ca98e (patch)
treed66f8423fce8e4d04aa509e1cbbaea2fb99a812c /include/linux/irq.h
parent7f94226f03299f1ca32f118f02f2a0295e0e5e93 (diff)
downloadkernel_goldelico_gta04-e1ef824146131709d7466e37f889f2dab24ca98e.zip
kernel_goldelico_gta04-e1ef824146131709d7466e37f889f2dab24ca98e.tar.gz
kernel_goldelico_gta04-e1ef824146131709d7466e37f889f2dab24ca98e.tar.bz2
genirq: Reflect IRQ_MOVE_PCNTXT in irq_data state
Required by x86. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 94c8f5b..c101ad4 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -170,6 +170,8 @@ struct irq_data {
* IRQD_LEVEL - Interrupt is level triggered
* IRQD_WAKEUP_STATE - Interrupt is configured for wakeup
* from suspend
+ * IRDQ_MOVE_PCNTXT - Interrupt can be moved in process
+ * context
*/
enum {
IRQD_TRIGGER_MASK = 0xf,
@@ -179,6 +181,7 @@ enum {
IRQD_AFFINITY_SET = (1 << 12),
IRQD_LEVEL = (1 << 13),
IRQD_WAKEUP_STATE = (1 << 14),
+ IRQD_MOVE_PCNTXT = (1 << 15),
};
static inline bool irqd_is_setaffinity_pending(struct irq_data *d)
@@ -225,6 +228,11 @@ static inline bool irqd_is_wakeup_set(struct irq_data *d)
return d->state_use_accessors & IRQD_WAKEUP_STATE;
}
+static inline bool irqd_can_move_in_process_context(struct irq_data *d)
+{
+ return d->state_use_accessors & IRQD_MOVE_PCNTXT;
+}
+
/**
* struct irq_chip - hardware interrupt chip descriptor
*