diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-05 09:20:04 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:18 -0500 |
commit | f230b6d5c48f8d12f4dfa1f8b5ab0b0320076d21 (patch) | |
tree | d4d30f77ab196930dd2d2982e90b1f2b5fd9bbe2 /include/linux/irq.h | |
parent | 91c499178139d6597e68db19638e4135510a34b8 (diff) |
genirq: Add IRQ_MOVE_PENDING to irq_data.state
chip implementations need to know about it. Keep status in sync until
all users are fixed.
Accessor function: irqd_is_setaffinity_pending(irqdata)
Coders who access them directly will be tracked down and slapped with
stinking trouts.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index 62bb08e4af13..2899905bfac7 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -58,15 +58,16 @@ typedef void (*irq_flow_handler_t)(unsigned int irq, | |||
58 | #define IRQ_DISABLED 0x00000800 /* DEPRECATED */ | 58 | #define IRQ_DISABLED 0x00000800 /* DEPRECATED */ |
59 | #define IRQ_PENDING 0x00001000 /* DEPRECATED */ | 59 | #define IRQ_PENDING 0x00001000 /* DEPRECATED */ |
60 | #define IRQ_MASKED 0x00002000 /* DEPRECATED */ | 60 | #define IRQ_MASKED 0x00002000 /* DEPRECATED */ |
61 | /* DEPRECATED use irq_setaffinity_pending() instead*/ | ||
62 | #define IRQ_MOVE_PENDING 0x00004000 | ||
61 | #endif | 63 | #endif |
62 | 64 | ||
63 | #define IRQ_LEVEL 0x00004000 /* IRQ level triggered */ | 65 | #define IRQ_LEVEL 0x00008000 /* IRQ level triggered */ |
64 | #define IRQ_PER_CPU 0x00010000 /* IRQ is per CPU */ | 66 | #define IRQ_PER_CPU 0x00010000 /* IRQ is per CPU */ |
65 | #define IRQ_NOPROBE 0x00020000 /* IRQ is not valid for probing */ | 67 | #define IRQ_NOPROBE 0x00020000 /* IRQ is not valid for probing */ |
66 | #define IRQ_NOREQUEST 0x00040000 /* IRQ cannot be requested */ | 68 | #define IRQ_NOREQUEST 0x00040000 /* IRQ cannot be requested */ |
67 | #define IRQ_NOAUTOEN 0x00080000 /* IRQ will not be enabled on request irq */ | 69 | #define IRQ_NOAUTOEN 0x00080000 /* IRQ will not be enabled on request irq */ |
68 | #define IRQ_WAKEUP 0x00100000 /* IRQ triggers system wakeup */ | 70 | #define IRQ_WAKEUP 0x00100000 /* IRQ triggers system wakeup */ |
69 | #define IRQ_MOVE_PENDING 0x00200000 /* need to re-target IRQ destination */ | ||
70 | #define IRQ_NO_BALANCING 0x00400000 /* IRQ is excluded from balancing */ | 71 | #define IRQ_NO_BALANCING 0x00400000 /* IRQ is excluded from balancing */ |
71 | #define IRQ_MOVE_PCNTXT 0x01000000 /* IRQ migration from process context */ | 72 | #define IRQ_MOVE_PCNTXT 0x01000000 /* IRQ migration from process context */ |
72 | #define IRQ_AFFINITY_SET 0x02000000 /* IRQ affinity was set from userspace*/ | 73 | #define IRQ_AFFINITY_SET 0x02000000 /* IRQ affinity was set from userspace*/ |
@@ -128,6 +129,21 @@ struct irq_data { | |||
128 | #endif | 129 | #endif |
129 | }; | 130 | }; |
130 | 131 | ||
132 | /* | ||
133 | * Bit masks for irq_data.state | ||
134 | * | ||
135 | * IRQD_SETAFFINITY_PENDING - Affinity setting is pending | ||
136 | */ | ||
137 | enum { | ||
138 | /* Bit 0 - 7 reserved for TYPE will use later */ | ||
139 | IRQD_SETAFFINITY_PENDING = (1 << 8), | ||
140 | }; | ||
141 | |||
142 | static inline bool irqd_is_setaffinity_pending(struct irq_data *d) | ||
143 | { | ||
144 | return d->state_use_accessors & IRQD_SETAFFINITY_PENDING; | ||
145 | } | ||
146 | |||
131 | /** | 147 | /** |
132 | * struct irq_chip - hardware interrupt chip descriptor | 148 | * struct irq_chip - hardware interrupt chip descriptor |
133 | * | 149 | * |