diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-08 11:11:03 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:20 -0500 |
commit | a005677b3dd05decdd8880cf3044ae709856f58f (patch) | |
tree | 529d1454940fe8c6723bd54f01e009d9be2ab840 /kernel/irq/internals.h | |
parent | 1ce6068dac1924f7095be5850481e790cbf1b3c1 (diff) |
genirq: Mirror IRQ_PER_CPU and IRQ_NO_BALANCING in irq_data.state
That's the right data structure to look at for arch code.
Accessor functions are provided.
irqd_is_per_cpu(irqdata);
irqd_can_balance(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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index b2ba59e73f21..a80b44d2735e 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h | |||
@@ -139,3 +139,14 @@ static inline void irqd_clr_move_pending(struct irq_data *d) | |||
139 | d->state_use_accessors &= ~IRQD_SETAFFINITY_PENDING; | 139 | d->state_use_accessors &= ~IRQD_SETAFFINITY_PENDING; |
140 | irq_compat_clr_move_pending(irq_data_to_desc(d)); | 140 | irq_compat_clr_move_pending(irq_data_to_desc(d)); |
141 | } | 141 | } |
142 | |||
143 | static inline void irqd_clear(struct irq_data *d, unsigned int mask) | ||
144 | { | ||
145 | d->state_use_accessors &= ~mask; | ||
146 | } | ||
147 | |||
148 | static inline void irqd_set(struct irq_data *d, unsigned int mask) | ||
149 | { | ||
150 | d->state_use_accessors |= mask; | ||
151 | } | ||
152 | |||