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 /kernel/irq/internals.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 'kernel/irq/internals.h')
-rw-r--r-- | kernel/irq/internals.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index cef0849dcfa5..e93e6090cd47 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h | |||
@@ -125,6 +125,21 @@ static inline void chip_bus_sync_unlock(struct irq_desc *desc) | |||
125 | } | 125 | } |
126 | 126 | ||
127 | /* | 127 | /* |
128 | * Manipulation functions for irq_data.state | ||
129 | */ | ||
130 | static inline void irqd_set_move_pending(struct irq_data *d) | ||
131 | { | ||
132 | d->state_use_accessors |= IRQD_SETAFFINITY_PENDING; | ||
133 | irq_compat_set_move_pending(irq_data_to_desc(d)); | ||
134 | } | ||
135 | |||
136 | static inline void irqd_clr_move_pending(struct irq_data *d) | ||
137 | { | ||
138 | d->state_use_accessors &= ~IRQD_SETAFFINITY_PENDING; | ||
139 | irq_compat_clr_move_pending(irq_data_to_desc(d)); | ||
140 | } | ||
141 | |||
142 | /* | ||
128 | * Debugging printout: | 143 | * Debugging printout: |
129 | */ | 144 | */ |
130 | 145 | ||