diff options
-rw-r--r-- | include/linux/irq.h | 117 | ||||
-rw-r--r-- | include/linux/irqdesc.h | 60 | ||||
-rw-r--r-- | kernel/irq/Kconfig | 4 | ||||
-rw-r--r-- | kernel/irq/autoprobe.c | 4 | ||||
-rw-r--r-- | kernel/irq/chip.c | 129 | ||||
-rw-r--r-- | kernel/irq/compat.h | 72 | ||||
-rw-r--r-- | kernel/irq/debug.h | 2 | ||||
-rw-r--r-- | kernel/irq/dummychip.c | 9 | ||||
-rw-r--r-- | kernel/irq/handle.c | 3 | ||||
-rw-r--r-- | kernel/irq/internals.h | 10 | ||||
-rw-r--r-- | kernel/irq/manage.c | 10 | ||||
-rw-r--r-- | kernel/irq/resend.c | 1 | ||||
-rw-r--r-- | kernel/irq/settings.h | 55 | ||||
-rw-r--r-- | kernel/irq/spurious.c | 1 |
14 files changed, 25 insertions, 452 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index b3741c83774c..7b3faace437d 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -92,18 +92,6 @@ enum { | |||
92 | IRQ_NO_BALANCING = (1 << 13), | 92 | IRQ_NO_BALANCING = (1 << 13), |
93 | IRQ_MOVE_PCNTXT = (1 << 14), | 93 | IRQ_MOVE_PCNTXT = (1 << 14), |
94 | IRQ_NESTED_THREAD = (1 << 15), | 94 | IRQ_NESTED_THREAD = (1 << 15), |
95 | |||
96 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_COMPAT | ||
97 | IRQ_INPROGRESS = (1 << 16), | ||
98 | IRQ_REPLAY = (1 << 17), | ||
99 | IRQ_WAITING = (1 << 18), | ||
100 | IRQ_DISABLED = (1 << 19), | ||
101 | IRQ_PENDING = (1 << 20), | ||
102 | IRQ_MASKED = (1 << 21), | ||
103 | IRQ_MOVE_PENDING = (1 << 22), | ||
104 | IRQ_AFFINITY_SET = (1 << 23), | ||
105 | IRQ_WAKEUP = (1 << 24), | ||
106 | #endif | ||
107 | }; | 95 | }; |
108 | 96 | ||
109 | #define IRQF_MODIFY_MASK \ | 97 | #define IRQF_MODIFY_MASK \ |
@@ -321,28 +309,6 @@ static inline void irqd_clr_chained_irq_inprogress(struct irq_data *d) | |||
321 | */ | 309 | */ |
322 | struct irq_chip { | 310 | struct irq_chip { |
323 | const char *name; | 311 | const char *name; |
324 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED | ||
325 | unsigned int (*startup)(unsigned int irq); | ||
326 | void (*shutdown)(unsigned int irq); | ||
327 | void (*enable)(unsigned int irq); | ||
328 | void (*disable)(unsigned int irq); | ||
329 | |||
330 | void (*ack)(unsigned int irq); | ||
331 | void (*mask)(unsigned int irq); | ||
332 | void (*mask_ack)(unsigned int irq); | ||
333 | void (*unmask)(unsigned int irq); | ||
334 | void (*eoi)(unsigned int irq); | ||
335 | |||
336 | void (*end)(unsigned int irq); | ||
337 | int (*set_affinity)(unsigned int irq, | ||
338 | const struct cpumask *dest); | ||
339 | int (*retrigger)(unsigned int irq); | ||
340 | int (*set_type)(unsigned int irq, unsigned int flow_type); | ||
341 | int (*set_wake)(unsigned int irq, unsigned int on); | ||
342 | |||
343 | void (*bus_lock)(unsigned int irq); | ||
344 | void (*bus_sync_unlock)(unsigned int irq); | ||
345 | #endif | ||
346 | unsigned int (*irq_startup)(struct irq_data *data); | 312 | unsigned int (*irq_startup)(struct irq_data *data); |
347 | void (*irq_shutdown)(struct irq_data *data); | 313 | void (*irq_shutdown)(struct irq_data *data); |
348 | void (*irq_enable)(struct irq_data *data); | 314 | void (*irq_enable)(struct irq_data *data); |
@@ -589,89 +555,6 @@ static inline struct msi_desc *irq_data_get_msi(struct irq_data *d) | |||
589 | return d->msi_desc; | 555 | return d->msi_desc; |
590 | } | 556 | } |
591 | 557 | ||
592 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_COMPAT | ||
593 | /* Please do not use: Use the replacement functions instead */ | ||
594 | static inline int set_irq_chip(unsigned int irq, struct irq_chip *chip) | ||
595 | { | ||
596 | return irq_set_chip(irq, chip); | ||
597 | } | ||
598 | static inline int set_irq_data(unsigned int irq, void *data) | ||
599 | { | ||
600 | return irq_set_handler_data(irq, data); | ||
601 | } | ||
602 | static inline int set_irq_chip_data(unsigned int irq, void *data) | ||
603 | { | ||
604 | return irq_set_chip_data(irq, data); | ||
605 | } | ||
606 | static inline int set_irq_type(unsigned int irq, unsigned int type) | ||
607 | { | ||
608 | return irq_set_irq_type(irq, type); | ||
609 | } | ||
610 | static inline int set_irq_msi(unsigned int irq, struct msi_desc *entry) | ||
611 | { | ||
612 | return irq_set_msi_desc(irq, entry); | ||
613 | } | ||
614 | static inline struct irq_chip *get_irq_chip(unsigned int irq) | ||
615 | { | ||
616 | return irq_get_chip(irq); | ||
617 | } | ||
618 | static inline void *get_irq_chip_data(unsigned int irq) | ||
619 | { | ||
620 | return irq_get_chip_data(irq); | ||
621 | } | ||
622 | static inline void *get_irq_data(unsigned int irq) | ||
623 | { | ||
624 | return irq_get_handler_data(irq); | ||
625 | } | ||
626 | static inline void *irq_data_get_irq_data(struct irq_data *d) | ||
627 | { | ||
628 | return irq_data_get_irq_handler_data(d); | ||
629 | } | ||
630 | static inline struct msi_desc *get_irq_msi(unsigned int irq) | ||
631 | { | ||
632 | return irq_get_msi_desc(irq); | ||
633 | } | ||
634 | static inline void set_irq_noprobe(unsigned int irq) | ||
635 | { | ||
636 | irq_set_noprobe(irq); | ||
637 | } | ||
638 | static inline void set_irq_probe(unsigned int irq) | ||
639 | { | ||
640 | irq_set_probe(irq); | ||
641 | } | ||
642 | static inline void set_irq_nested_thread(unsigned int irq, int nest) | ||
643 | { | ||
644 | irq_set_nested_thread(irq, nest); | ||
645 | } | ||
646 | static inline void | ||
647 | set_irq_chip_and_handler_name(unsigned int irq, struct irq_chip *chip, | ||
648 | irq_flow_handler_t handle, const char *name) | ||
649 | { | ||
650 | irq_set_chip_and_handler_name(irq, chip, handle, name); | ||
651 | } | ||
652 | static inline void | ||
653 | set_irq_chip_and_handler(unsigned int irq, struct irq_chip *chip, | ||
654 | irq_flow_handler_t handle) | ||
655 | { | ||
656 | irq_set_chip_and_handler(irq, chip, handle); | ||
657 | } | ||
658 | static inline void | ||
659 | __set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained, | ||
660 | const char *name) | ||
661 | { | ||
662 | __irq_set_handler(irq, handle, is_chained, name); | ||
663 | } | ||
664 | static inline void set_irq_handler(unsigned int irq, irq_flow_handler_t handle) | ||
665 | { | ||
666 | irq_set_handler(irq, handle); | ||
667 | } | ||
668 | static inline void | ||
669 | set_irq_chained_handler(unsigned int irq, irq_flow_handler_t handle) | ||
670 | { | ||
671 | irq_set_chained_handler(irq, handle); | ||
672 | } | ||
673 | #endif | ||
674 | |||
675 | int irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node); | 558 | int irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node); |
676 | void irq_free_descs(unsigned int irq, unsigned int cnt); | 559 | void irq_free_descs(unsigned int irq, unsigned int cnt); |
677 | int irq_reserve_irqs(unsigned int from, unsigned int cnt); | 560 | int irq_reserve_irqs(unsigned int from, unsigned int cnt); |
diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index 15e6c3905f41..a082905b5ebe 100644 --- a/include/linux/irqdesc.h +++ b/include/linux/irqdesc.h | |||
@@ -35,32 +35,7 @@ struct timer_rand_state; | |||
35 | * @name: flow handler name for /proc/interrupts output | 35 | * @name: flow handler name for /proc/interrupts output |
36 | */ | 36 | */ |
37 | struct irq_desc { | 37 | struct irq_desc { |
38 | |||
39 | #ifdef CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED | ||
40 | struct irq_data irq_data; | 38 | struct irq_data irq_data; |
41 | #else | ||
42 | /* | ||
43 | * This union will go away, once we fixed the direct access to | ||
44 | * irq_desc all over the place. The direct fields are a 1:1 | ||
45 | * overlay of irq_data. | ||
46 | */ | ||
47 | union { | ||
48 | struct irq_data irq_data; | ||
49 | struct { | ||
50 | unsigned int irq; | ||
51 | unsigned int node; | ||
52 | unsigned int pad_do_not_even_think_about_it; | ||
53 | struct irq_chip *chip; | ||
54 | void *handler_data; | ||
55 | void *chip_data; | ||
56 | struct msi_desc *msi_desc; | ||
57 | #ifdef CONFIG_SMP | ||
58 | cpumask_var_t affinity; | ||
59 | #endif | ||
60 | }; | ||
61 | }; | ||
62 | #endif | ||
63 | |||
64 | struct timer_rand_state *timer_rand_state; | 39 | struct timer_rand_state *timer_rand_state; |
65 | unsigned int __percpu *kstat_irqs; | 40 | unsigned int __percpu *kstat_irqs; |
66 | irq_flow_handler_t handle_irq; | 41 | irq_flow_handler_t handle_irq; |
@@ -68,11 +43,7 @@ struct irq_desc { | |||
68 | irq_preflow_handler_t preflow_handler; | 43 | irq_preflow_handler_t preflow_handler; |
69 | #endif | 44 | #endif |
70 | struct irqaction *action; /* IRQ action list */ | 45 | struct irqaction *action; /* IRQ action list */ |
71 | #ifdef CONFIG_GENERIC_HARDIRQS_NO_COMPAT | ||
72 | unsigned int status_use_accessors; | 46 | unsigned int status_use_accessors; |
73 | #else | ||
74 | unsigned int status; /* IRQ status */ | ||
75 | #endif | ||
76 | unsigned int core_internal_state__do_not_mess_with_it; | 47 | unsigned int core_internal_state__do_not_mess_with_it; |
77 | unsigned int depth; /* nested irq disables */ | 48 | unsigned int depth; /* nested irq disables */ |
78 | unsigned int wake_depth; /* nested wake enables */ | 49 | unsigned int wake_depth; /* nested wake enables */ |
@@ -127,27 +98,6 @@ static inline struct msi_desc *irq_desc_get_msi_desc(struct irq_desc *desc) | |||
127 | return desc->irq_data.msi_desc; | 98 | return desc->irq_data.msi_desc; |
128 | } | 99 | } |
129 | 100 | ||
130 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_COMPAT | ||
131 | static inline struct irq_chip *get_irq_desc_chip(struct irq_desc *desc) | ||
132 | { | ||
133 | return irq_desc_get_chip(desc); | ||
134 | } | ||
135 | static inline void *get_irq_desc_data(struct irq_desc *desc) | ||
136 | { | ||
137 | return irq_desc_get_handler_data(desc); | ||
138 | } | ||
139 | |||
140 | static inline void *get_irq_desc_chip_data(struct irq_desc *desc) | ||
141 | { | ||
142 | return irq_desc_get_chip_data(desc); | ||
143 | } | ||
144 | |||
145 | static inline struct msi_desc *get_irq_desc_msi(struct irq_desc *desc) | ||
146 | { | ||
147 | return irq_desc_get_msi_desc(desc); | ||
148 | } | ||
149 | #endif | ||
150 | |||
151 | /* | 101 | /* |
152 | * Architectures call this to let the generic IRQ layer | 102 | * Architectures call this to let the generic IRQ layer |
153 | * handle an interrupt. If the descriptor is attached to an | 103 | * handle an interrupt. If the descriptor is attached to an |
@@ -194,21 +144,13 @@ __irq_set_chip_handler_name_locked(unsigned int irq, struct irq_chip *chip, | |||
194 | desc->name = name; | 144 | desc->name = name; |
195 | } | 145 | } |
196 | 146 | ||
197 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_COMPAT | ||
198 | static inline void __set_irq_handler_unlocked(int irq, | ||
199 | irq_flow_handler_t handler) | ||
200 | { | ||
201 | __irq_set_handler_locked(irq, handler); | ||
202 | } | ||
203 | |||
204 | static inline int irq_balancing_disabled(unsigned int irq) | 147 | static inline int irq_balancing_disabled(unsigned int irq) |
205 | { | 148 | { |
206 | struct irq_desc *desc; | 149 | struct irq_desc *desc; |
207 | 150 | ||
208 | desc = irq_to_desc(irq); | 151 | desc = irq_to_desc(irq); |
209 | return desc->status & IRQ_NO_BALANCING_MASK; | 152 | return desc->status_use_accessors & IRQ_NO_BALANCING_MASK; |
210 | } | 153 | } |
211 | #endif | ||
212 | 154 | ||
213 | static inline void | 155 | static inline void |
214 | irq_set_lockdep_class(unsigned int irq, struct lock_class_key *class) | 156 | irq_set_lockdep_class(unsigned int irq, struct lock_class_key *class) |
diff --git a/kernel/irq/Kconfig b/kernel/irq/Kconfig index 72606ba10b14..a69c333f78e4 100644 --- a/kernel/irq/Kconfig +++ b/kernel/irq/Kconfig | |||
@@ -10,10 +10,6 @@ menu "IRQ subsystem" | |||
10 | config GENERIC_HARDIRQS | 10 | config GENERIC_HARDIRQS |
11 | def_bool y | 11 | def_bool y |
12 | 12 | ||
13 | # Select this to disable the deprecated stuff | ||
14 | config GENERIC_HARDIRQS_NO_DEPRECATED | ||
15 | bool | ||
16 | |||
17 | config GENERIC_HARDIRQS_NO_COMPAT | 13 | config GENERIC_HARDIRQS_NO_COMPAT |
18 | bool | 14 | bool |
19 | 15 | ||
diff --git a/kernel/irq/autoprobe.c b/kernel/irq/autoprobe.c index 394784c57060..342d8f44e401 100644 --- a/kernel/irq/autoprobe.c +++ b/kernel/irq/autoprobe.c | |||
@@ -70,10 +70,8 @@ unsigned long probe_irq_on(void) | |||
70 | raw_spin_lock_irq(&desc->lock); | 70 | raw_spin_lock_irq(&desc->lock); |
71 | if (!desc->action && irq_settings_can_probe(desc)) { | 71 | if (!desc->action && irq_settings_can_probe(desc)) { |
72 | desc->istate |= IRQS_AUTODETECT | IRQS_WAITING; | 72 | desc->istate |= IRQS_AUTODETECT | IRQS_WAITING; |
73 | if (irq_startup(desc)) { | 73 | if (irq_startup(desc)) |
74 | irq_compat_set_pending(desc); | ||
75 | desc->istate |= IRQS_PENDING; | 74 | desc->istate |= IRQS_PENDING; |
76 | } | ||
77 | } | 75 | } |
78 | raw_spin_unlock_irq(&desc->lock); | 76 | raw_spin_unlock_irq(&desc->lock); |
79 | } | 77 | } |
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 03099d521f5e..616ec1c6b06f 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -34,7 +34,6 @@ int irq_set_chip(unsigned int irq, struct irq_chip *chip) | |||
34 | if (!chip) | 34 | if (!chip) |
35 | chip = &no_irq_chip; | 35 | chip = &no_irq_chip; |
36 | 36 | ||
37 | irq_chip_set_defaults(chip); | ||
38 | desc->irq_data.chip = chip; | 37 | desc->irq_data.chip = chip; |
39 | irq_put_desc_unlock(desc, flags); | 38 | irq_put_desc_unlock(desc, flags); |
40 | /* | 39 | /* |
@@ -141,25 +140,21 @@ EXPORT_SYMBOL_GPL(irq_get_irq_data); | |||
141 | static void irq_state_clr_disabled(struct irq_desc *desc) | 140 | static void irq_state_clr_disabled(struct irq_desc *desc) |
142 | { | 141 | { |
143 | irqd_clear(&desc->irq_data, IRQD_IRQ_DISABLED); | 142 | irqd_clear(&desc->irq_data, IRQD_IRQ_DISABLED); |
144 | irq_compat_clr_disabled(desc); | ||
145 | } | 143 | } |
146 | 144 | ||
147 | static void irq_state_set_disabled(struct irq_desc *desc) | 145 | static void irq_state_set_disabled(struct irq_desc *desc) |
148 | { | 146 | { |
149 | irqd_set(&desc->irq_data, IRQD_IRQ_DISABLED); | 147 | irqd_set(&desc->irq_data, IRQD_IRQ_DISABLED); |
150 | irq_compat_set_disabled(desc); | ||
151 | } | 148 | } |
152 | 149 | ||
153 | static void irq_state_clr_masked(struct irq_desc *desc) | 150 | static void irq_state_clr_masked(struct irq_desc *desc) |
154 | { | 151 | { |
155 | irqd_clear(&desc->irq_data, IRQD_IRQ_MASKED); | 152 | irqd_clear(&desc->irq_data, IRQD_IRQ_MASKED); |
156 | irq_compat_clr_masked(desc); | ||
157 | } | 153 | } |
158 | 154 | ||
159 | static void irq_state_set_masked(struct irq_desc *desc) | 155 | static void irq_state_set_masked(struct irq_desc *desc) |
160 | { | 156 | { |
161 | irqd_set(&desc->irq_data, IRQD_IRQ_MASKED); | 157 | irqd_set(&desc->irq_data, IRQD_IRQ_MASKED); |
162 | irq_compat_set_masked(desc); | ||
163 | } | 158 | } |
164 | 159 | ||
165 | int irq_startup(struct irq_desc *desc) | 160 | int irq_startup(struct irq_desc *desc) |
@@ -209,126 +204,6 @@ void irq_disable(struct irq_desc *desc) | |||
209 | } | 204 | } |
210 | } | 205 | } |
211 | 206 | ||
212 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED | ||
213 | /* Temporary migration helpers */ | ||
214 | static void compat_irq_mask(struct irq_data *data) | ||
215 | { | ||
216 | data->chip->mask(data->irq); | ||
217 | } | ||
218 | |||
219 | static void compat_irq_unmask(struct irq_data *data) | ||
220 | { | ||
221 | data->chip->unmask(data->irq); | ||
222 | } | ||
223 | |||
224 | static void compat_irq_ack(struct irq_data *data) | ||
225 | { | ||
226 | data->chip->ack(data->irq); | ||
227 | } | ||
228 | |||
229 | static void compat_irq_mask_ack(struct irq_data *data) | ||
230 | { | ||
231 | data->chip->mask_ack(data->irq); | ||
232 | } | ||
233 | |||
234 | static void compat_irq_eoi(struct irq_data *data) | ||
235 | { | ||
236 | data->chip->eoi(data->irq); | ||
237 | } | ||
238 | |||
239 | static void compat_irq_enable(struct irq_data *data) | ||
240 | { | ||
241 | data->chip->enable(data->irq); | ||
242 | } | ||
243 | |||
244 | static void compat_irq_disable(struct irq_data *data) | ||
245 | { | ||
246 | data->chip->disable(data->irq); | ||
247 | } | ||
248 | |||
249 | static void compat_irq_shutdown(struct irq_data *data) | ||
250 | { | ||
251 | data->chip->shutdown(data->irq); | ||
252 | } | ||
253 | |||
254 | static unsigned int compat_irq_startup(struct irq_data *data) | ||
255 | { | ||
256 | return data->chip->startup(data->irq); | ||
257 | } | ||
258 | |||
259 | static int compat_irq_set_affinity(struct irq_data *data, | ||
260 | const struct cpumask *dest, bool force) | ||
261 | { | ||
262 | return data->chip->set_affinity(data->irq, dest); | ||
263 | } | ||
264 | |||
265 | static int compat_irq_set_type(struct irq_data *data, unsigned int type) | ||
266 | { | ||
267 | return data->chip->set_type(data->irq, type); | ||
268 | } | ||
269 | |||
270 | static int compat_irq_set_wake(struct irq_data *data, unsigned int on) | ||
271 | { | ||
272 | return data->chip->set_wake(data->irq, on); | ||
273 | } | ||
274 | |||
275 | static int compat_irq_retrigger(struct irq_data *data) | ||
276 | { | ||
277 | return data->chip->retrigger(data->irq); | ||
278 | } | ||
279 | |||
280 | static void compat_bus_lock(struct irq_data *data) | ||
281 | { | ||
282 | data->chip->bus_lock(data->irq); | ||
283 | } | ||
284 | |||
285 | static void compat_bus_sync_unlock(struct irq_data *data) | ||
286 | { | ||
287 | data->chip->bus_sync_unlock(data->irq); | ||
288 | } | ||
289 | #endif | ||
290 | |||
291 | /* | ||
292 | * Fixup enable/disable function pointers | ||
293 | */ | ||
294 | void irq_chip_set_defaults(struct irq_chip *chip) | ||
295 | { | ||
296 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED | ||
297 | if (chip->enable) | ||
298 | chip->irq_enable = compat_irq_enable; | ||
299 | if (chip->disable) | ||
300 | chip->irq_disable = compat_irq_disable; | ||
301 | if (chip->shutdown) | ||
302 | chip->irq_shutdown = compat_irq_shutdown; | ||
303 | if (chip->startup) | ||
304 | chip->irq_startup = compat_irq_startup; | ||
305 | if (!chip->end) | ||
306 | chip->end = dummy_irq_chip.end; | ||
307 | if (chip->bus_lock) | ||
308 | chip->irq_bus_lock = compat_bus_lock; | ||
309 | if (chip->bus_sync_unlock) | ||
310 | chip->irq_bus_sync_unlock = compat_bus_sync_unlock; | ||
311 | if (chip->mask) | ||
312 | chip->irq_mask = compat_irq_mask; | ||
313 | if (chip->unmask) | ||
314 | chip->irq_unmask = compat_irq_unmask; | ||
315 | if (chip->ack) | ||
316 | chip->irq_ack = compat_irq_ack; | ||
317 | if (chip->mask_ack) | ||
318 | chip->irq_mask_ack = compat_irq_mask_ack; | ||
319 | if (chip->eoi) | ||
320 | chip->irq_eoi = compat_irq_eoi; | ||
321 | if (chip->set_affinity) | ||
322 | chip->irq_set_affinity = compat_irq_set_affinity; | ||
323 | if (chip->set_type) | ||
324 | chip->irq_set_type = compat_irq_set_type; | ||
325 | if (chip->set_wake) | ||
326 | chip->irq_set_wake = compat_irq_set_wake; | ||
327 | if (chip->retrigger) | ||
328 | chip->irq_retrigger = compat_irq_retrigger; | ||
329 | #endif | ||
330 | } | ||
331 | |||
332 | static inline void mask_ack_irq(struct irq_desc *desc) | 207 | static inline void mask_ack_irq(struct irq_desc *desc) |
333 | { | 208 | { |
334 | if (desc->irq_data.chip->irq_mask_ack) | 209 | if (desc->irq_data.chip->irq_mask_ack) |
@@ -381,7 +256,6 @@ void handle_nested_irq(unsigned int irq) | |||
381 | if (unlikely(!action || irqd_irq_disabled(&desc->irq_data))) | 256 | if (unlikely(!action || irqd_irq_disabled(&desc->irq_data))) |
382 | goto out_unlock; | 257 | goto out_unlock; |
383 | 258 | ||
384 | irq_compat_set_progress(desc); | ||
385 | irqd_set(&desc->irq_data, IRQD_IRQ_INPROGRESS); | 259 | irqd_set(&desc->irq_data, IRQD_IRQ_INPROGRESS); |
386 | raw_spin_unlock_irq(&desc->lock); | 260 | raw_spin_unlock_irq(&desc->lock); |
387 | 261 | ||
@@ -391,7 +265,6 @@ void handle_nested_irq(unsigned int irq) | |||
391 | 265 | ||
392 | raw_spin_lock_irq(&desc->lock); | 266 | raw_spin_lock_irq(&desc->lock); |
393 | irqd_clear(&desc->irq_data, IRQD_IRQ_INPROGRESS); | 267 | irqd_clear(&desc->irq_data, IRQD_IRQ_INPROGRESS); |
394 | irq_compat_clr_progress(desc); | ||
395 | 268 | ||
396 | out_unlock: | 269 | out_unlock: |
397 | raw_spin_unlock_irq(&desc->lock); | 270 | raw_spin_unlock_irq(&desc->lock); |
@@ -514,7 +387,6 @@ handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc) | |||
514 | * then mask it and get out of here: | 387 | * then mask it and get out of here: |
515 | */ | 388 | */ |
516 | if (unlikely(!desc->action || irqd_irq_disabled(&desc->irq_data))) { | 389 | if (unlikely(!desc->action || irqd_irq_disabled(&desc->irq_data))) { |
517 | irq_compat_set_pending(desc); | ||
518 | desc->istate |= IRQS_PENDING; | 390 | desc->istate |= IRQS_PENDING; |
519 | mask_irq(desc); | 391 | mask_irq(desc); |
520 | goto out; | 392 | goto out; |
@@ -567,7 +439,6 @@ handle_edge_irq(unsigned int irq, struct irq_desc *desc) | |||
567 | if (unlikely(irqd_irq_disabled(&desc->irq_data) || | 439 | if (unlikely(irqd_irq_disabled(&desc->irq_data) || |
568 | irqd_irq_inprogress(&desc->irq_data) || !desc->action)) { | 440 | irqd_irq_inprogress(&desc->irq_data) || !desc->action)) { |
569 | if (!irq_check_poll(desc)) { | 441 | if (!irq_check_poll(desc)) { |
570 | irq_compat_set_pending(desc); | ||
571 | desc->istate |= IRQS_PENDING; | 442 | desc->istate |= IRQS_PENDING; |
572 | mask_ack_irq(desc); | 443 | mask_ack_irq(desc); |
573 | goto out_unlock; | 444 | goto out_unlock; |
diff --git a/kernel/irq/compat.h b/kernel/irq/compat.h deleted file mode 100644 index 6bbaf66aca85..000000000000 --- a/kernel/irq/compat.h +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | /* | ||
2 | * Compat layer for transition period | ||
3 | */ | ||
4 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_COMPAT | ||
5 | static inline void irq_compat_set_progress(struct irq_desc *desc) | ||
6 | { | ||
7 | desc->status |= IRQ_INPROGRESS; | ||
8 | } | ||
9 | |||
10 | static inline void irq_compat_clr_progress(struct irq_desc *desc) | ||
11 | { | ||
12 | desc->status &= ~IRQ_INPROGRESS; | ||
13 | } | ||
14 | static inline void irq_compat_set_disabled(struct irq_desc *desc) | ||
15 | { | ||
16 | desc->status |= IRQ_DISABLED; | ||
17 | } | ||
18 | static inline void irq_compat_clr_disabled(struct irq_desc *desc) | ||
19 | { | ||
20 | desc->status &= ~IRQ_DISABLED; | ||
21 | } | ||
22 | static inline void irq_compat_set_pending(struct irq_desc *desc) | ||
23 | { | ||
24 | desc->status |= IRQ_PENDING; | ||
25 | } | ||
26 | |||
27 | static inline void irq_compat_clr_pending(struct irq_desc *desc) | ||
28 | { | ||
29 | desc->status &= ~IRQ_PENDING; | ||
30 | } | ||
31 | static inline void irq_compat_set_masked(struct irq_desc *desc) | ||
32 | { | ||
33 | desc->status |= IRQ_MASKED; | ||
34 | } | ||
35 | |||
36 | static inline void irq_compat_clr_masked(struct irq_desc *desc) | ||
37 | { | ||
38 | desc->status &= ~IRQ_MASKED; | ||
39 | } | ||
40 | static inline void irq_compat_set_move_pending(struct irq_desc *desc) | ||
41 | { | ||
42 | desc->status |= IRQ_MOVE_PENDING; | ||
43 | } | ||
44 | |||
45 | static inline void irq_compat_clr_move_pending(struct irq_desc *desc) | ||
46 | { | ||
47 | desc->status &= ~IRQ_MOVE_PENDING; | ||
48 | } | ||
49 | static inline void irq_compat_set_affinity(struct irq_desc *desc) | ||
50 | { | ||
51 | desc->status |= IRQ_AFFINITY_SET; | ||
52 | } | ||
53 | |||
54 | static inline void irq_compat_clr_affinity(struct irq_desc *desc) | ||
55 | { | ||
56 | desc->status &= ~IRQ_AFFINITY_SET; | ||
57 | } | ||
58 | #else | ||
59 | static inline void irq_compat_set_progress(struct irq_desc *desc) { } | ||
60 | static inline void irq_compat_clr_progress(struct irq_desc *desc) { } | ||
61 | static inline void irq_compat_set_disabled(struct irq_desc *desc) { } | ||
62 | static inline void irq_compat_clr_disabled(struct irq_desc *desc) { } | ||
63 | static inline void irq_compat_set_pending(struct irq_desc *desc) { } | ||
64 | static inline void irq_compat_clr_pending(struct irq_desc *desc) { } | ||
65 | static inline void irq_compat_set_masked(struct irq_desc *desc) { } | ||
66 | static inline void irq_compat_clr_masked(struct irq_desc *desc) { } | ||
67 | static inline void irq_compat_set_move_pending(struct irq_desc *desc) { } | ||
68 | static inline void irq_compat_clr_move_pending(struct irq_desc *desc) { } | ||
69 | static inline void irq_compat_set_affinity(struct irq_desc *desc) { } | ||
70 | static inline void irq_compat_clr_affinity(struct irq_desc *desc) { } | ||
71 | #endif | ||
72 | |||
diff --git a/kernel/irq/debug.h b/kernel/irq/debug.h index a0bd875ba3d5..306cba37e9a5 100644 --- a/kernel/irq/debug.h +++ b/kernel/irq/debug.h | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | #include <linux/kallsyms.h> | 5 | #include <linux/kallsyms.h> |
6 | 6 | ||
7 | #define P(f) if (desc->status & f) printk("%14s set\n", #f) | 7 | #define P(f) if (desc->status_use_accessors & f) printk("%14s set\n", #f) |
8 | #define PS(f) if (desc->istate & f) printk("%14s set\n", #f) | 8 | #define PS(f) if (desc->istate & f) printk("%14s set\n", #f) |
9 | /* FIXME */ | 9 | /* FIXME */ |
10 | #define PD(f) do { } while (0) | 10 | #define PD(f) do { } while (0) |
diff --git a/kernel/irq/dummychip.c b/kernel/irq/dummychip.c index 20dc5474947e..b5fcd96c7102 100644 --- a/kernel/irq/dummychip.c +++ b/kernel/irq/dummychip.c | |||
@@ -31,13 +31,6 @@ static unsigned int noop_ret(struct irq_data *data) | |||
31 | return 0; | 31 | return 0; |
32 | } | 32 | } |
33 | 33 | ||
34 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED | ||
35 | static void compat_noop(unsigned int irq) { } | ||
36 | #define END_INIT .end = compat_noop | ||
37 | #else | ||
38 | #define END_INIT | ||
39 | #endif | ||
40 | |||
41 | /* | 34 | /* |
42 | * Generic no controller implementation | 35 | * Generic no controller implementation |
43 | */ | 36 | */ |
@@ -48,7 +41,6 @@ struct irq_chip no_irq_chip = { | |||
48 | .irq_enable = noop, | 41 | .irq_enable = noop, |
49 | .irq_disable = noop, | 42 | .irq_disable = noop, |
50 | .irq_ack = ack_bad, | 43 | .irq_ack = ack_bad, |
51 | END_INIT | ||
52 | }; | 44 | }; |
53 | 45 | ||
54 | /* | 46 | /* |
@@ -64,5 +56,4 @@ struct irq_chip dummy_irq_chip = { | |||
64 | .irq_ack = noop, | 56 | .irq_ack = noop, |
65 | .irq_mask = noop, | 57 | .irq_mask = noop, |
66 | .irq_unmask = noop, | 58 | .irq_unmask = noop, |
67 | END_INIT | ||
68 | }; | 59 | }; |
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 1a2fb77f2fd6..90cb55f6d7eb 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -175,9 +175,7 @@ irqreturn_t handle_irq_event(struct irq_desc *desc) | |||
175 | struct irqaction *action = desc->action; | 175 | struct irqaction *action = desc->action; |
176 | irqreturn_t ret; | 176 | irqreturn_t ret; |
177 | 177 | ||
178 | irq_compat_clr_pending(desc); | ||
179 | desc->istate &= ~IRQS_PENDING; | 178 | desc->istate &= ~IRQS_PENDING; |
180 | irq_compat_set_progress(desc); | ||
181 | irqd_set(&desc->irq_data, IRQD_IRQ_INPROGRESS); | 179 | irqd_set(&desc->irq_data, IRQD_IRQ_INPROGRESS); |
182 | raw_spin_unlock(&desc->lock); | 180 | raw_spin_unlock(&desc->lock); |
183 | 181 | ||
@@ -185,6 +183,5 @@ irqreturn_t handle_irq_event(struct irq_desc *desc) | |||
185 | 183 | ||
186 | raw_spin_lock(&desc->lock); | 184 | raw_spin_lock(&desc->lock); |
187 | irqd_clear(&desc->irq_data, IRQD_IRQ_INPROGRESS); | 185 | irqd_clear(&desc->irq_data, IRQD_IRQ_INPROGRESS); |
188 | irq_compat_clr_progress(desc); | ||
189 | return ret; | 186 | return ret; |
190 | } | 187 | } |
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index 6b8b9713e28d..6546431447d7 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h | |||
@@ -15,10 +15,6 @@ | |||
15 | 15 | ||
16 | #define istate core_internal_state__do_not_mess_with_it | 16 | #define istate core_internal_state__do_not_mess_with_it |
17 | 17 | ||
18 | #ifdef CONFIG_GENERIC_HARDIRQS_NO_COMPAT | ||
19 | # define status status_use_accessors | ||
20 | #endif | ||
21 | |||
22 | extern int noirqdebug; | 18 | extern int noirqdebug; |
23 | 19 | ||
24 | /* | 20 | /* |
@@ -61,15 +57,11 @@ enum { | |||
61 | IRQS_SUSPENDED = 0x00000800, | 57 | IRQS_SUSPENDED = 0x00000800, |
62 | }; | 58 | }; |
63 | 59 | ||
64 | #include "compat.h" | ||
65 | #include "debug.h" | 60 | #include "debug.h" |
66 | #include "settings.h" | 61 | #include "settings.h" |
67 | 62 | ||
68 | #define irq_data_to_desc(data) container_of(data, struct irq_desc, irq_data) | 63 | #define irq_data_to_desc(data) container_of(data, struct irq_desc, irq_data) |
69 | 64 | ||
70 | /* Set default functions for irq_chip structures: */ | ||
71 | extern void irq_chip_set_defaults(struct irq_chip *chip); | ||
72 | |||
73 | extern int __irq_set_trigger(struct irq_desc *desc, unsigned int irq, | 65 | extern int __irq_set_trigger(struct irq_desc *desc, unsigned int irq, |
74 | unsigned long flags); | 66 | unsigned long flags); |
75 | extern void __disable_irq(struct irq_desc *desc, unsigned int irq, bool susp); | 67 | extern void __disable_irq(struct irq_desc *desc, unsigned int irq, bool susp); |
@@ -156,13 +148,11 @@ irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags) | |||
156 | static inline void irqd_set_move_pending(struct irq_data *d) | 148 | static inline void irqd_set_move_pending(struct irq_data *d) |
157 | { | 149 | { |
158 | d->state_use_accessors |= IRQD_SETAFFINITY_PENDING; | 150 | d->state_use_accessors |= IRQD_SETAFFINITY_PENDING; |
159 | irq_compat_set_move_pending(irq_data_to_desc(d)); | ||
160 | } | 151 | } |
161 | 152 | ||
162 | static inline void irqd_clr_move_pending(struct irq_data *d) | 153 | static inline void irqd_clr_move_pending(struct irq_data *d) |
163 | { | 154 | { |
164 | d->state_use_accessors &= ~IRQD_SETAFFINITY_PENDING; | 155 | d->state_use_accessors &= ~IRQD_SETAFFINITY_PENDING; |
165 | irq_compat_clr_move_pending(irq_data_to_desc(d)); | ||
166 | } | 156 | } |
167 | 157 | ||
168 | static inline void irqd_clear(struct irq_data *d, unsigned int mask) | 158 | static inline void irqd_clear(struct irq_data *d, unsigned int mask) |
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index b3bf54f7d977..12a80fdae11c 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -166,7 +166,6 @@ int __irq_set_affinity_locked(struct irq_data *data, const struct cpumask *mask) | |||
166 | kref_get(&desc->affinity_notify->kref); | 166 | kref_get(&desc->affinity_notify->kref); |
167 | schedule_work(&desc->affinity_notify->work); | 167 | schedule_work(&desc->affinity_notify->work); |
168 | } | 168 | } |
169 | irq_compat_set_affinity(desc); | ||
170 | irqd_set(data, IRQD_AFFINITY_SET); | 169 | irqd_set(data, IRQD_AFFINITY_SET); |
171 | 170 | ||
172 | return ret; | 171 | return ret; |
@@ -297,10 +296,8 @@ setup_affinity(unsigned int irq, struct irq_desc *desc, struct cpumask *mask) | |||
297 | if (cpumask_intersects(desc->irq_data.affinity, | 296 | if (cpumask_intersects(desc->irq_data.affinity, |
298 | cpu_online_mask)) | 297 | cpu_online_mask)) |
299 | set = desc->irq_data.affinity; | 298 | set = desc->irq_data.affinity; |
300 | else { | 299 | else |
301 | irq_compat_clr_affinity(desc); | ||
302 | irqd_clear(&desc->irq_data, IRQD_AFFINITY_SET); | 300 | irqd_clear(&desc->irq_data, IRQD_AFFINITY_SET); |
303 | } | ||
304 | } | 301 | } |
305 | 302 | ||
306 | cpumask_and(mask, cpu_online_mask, set); | 303 | cpumask_and(mask, cpu_online_mask, set); |
@@ -587,8 +584,6 @@ int __irq_set_trigger(struct irq_desc *desc, unsigned int irq, | |||
587 | irqd_set(&desc->irq_data, IRQD_LEVEL); | 584 | irqd_set(&desc->irq_data, IRQD_LEVEL); |
588 | } | 585 | } |
589 | 586 | ||
590 | if (chip != desc->irq_data.chip) | ||
591 | irq_chip_set_defaults(desc->irq_data.chip); | ||
592 | ret = 0; | 587 | ret = 0; |
593 | break; | 588 | break; |
594 | default: | 589 | default: |
@@ -785,7 +780,6 @@ static int irq_thread(void *data) | |||
785 | * but AFAICT IRQS_PENDING should be fine as it | 780 | * but AFAICT IRQS_PENDING should be fine as it |
786 | * retriggers the interrupt itself --- tglx | 781 | * retriggers the interrupt itself --- tglx |
787 | */ | 782 | */ |
788 | irq_compat_set_pending(desc); | ||
789 | desc->istate |= IRQS_PENDING; | 783 | desc->istate |= IRQS_PENDING; |
790 | raw_spin_unlock_irq(&desc->lock); | 784 | raw_spin_unlock_irq(&desc->lock); |
791 | } else { | 785 | } else { |
@@ -981,8 +975,6 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) | |||
981 | new->thread_mask = 1 << ffz(thread_mask); | 975 | new->thread_mask = 1 << ffz(thread_mask); |
982 | 976 | ||
983 | if (!shared) { | 977 | if (!shared) { |
984 | irq_chip_set_defaults(desc->irq_data.chip); | ||
985 | |||
986 | init_waitqueue_head(&desc->wait_for_threads); | 978 | init_waitqueue_head(&desc->wait_for_threads); |
987 | 979 | ||
988 | /* Setup the type (level, edge polarity) if configured: */ | 980 | /* Setup the type (level, edge polarity) if configured: */ |
diff --git a/kernel/irq/resend.c b/kernel/irq/resend.c index ad683a99b1ec..14dd5761e8c9 100644 --- a/kernel/irq/resend.c +++ b/kernel/irq/resend.c | |||
@@ -65,7 +65,6 @@ void check_irq_resend(struct irq_desc *desc, unsigned int irq) | |||
65 | if (desc->istate & IRQS_REPLAY) | 65 | if (desc->istate & IRQS_REPLAY) |
66 | return; | 66 | return; |
67 | if (desc->istate & IRQS_PENDING) { | 67 | if (desc->istate & IRQS_PENDING) { |
68 | irq_compat_clr_pending(desc); | ||
69 | desc->istate &= ~IRQS_PENDING; | 68 | desc->istate &= ~IRQS_PENDING; |
70 | desc->istate |= IRQS_REPLAY; | 69 | desc->istate |= IRQS_REPLAY; |
71 | 70 | ||
diff --git a/kernel/irq/settings.h b/kernel/irq/settings.h index 0227ad358272..0d91730b6330 100644 --- a/kernel/irq/settings.h +++ b/kernel/irq/settings.h | |||
@@ -15,17 +15,8 @@ enum { | |||
15 | _IRQF_MODIFY_MASK = IRQF_MODIFY_MASK, | 15 | _IRQF_MODIFY_MASK = IRQF_MODIFY_MASK, |
16 | }; | 16 | }; |
17 | 17 | ||
18 | #define IRQ_INPROGRESS GOT_YOU_MORON | ||
19 | #define IRQ_REPLAY GOT_YOU_MORON | ||
20 | #define IRQ_WAITING GOT_YOU_MORON | ||
21 | #define IRQ_DISABLED GOT_YOU_MORON | ||
22 | #define IRQ_PENDING GOT_YOU_MORON | ||
23 | #define IRQ_MASKED GOT_YOU_MORON | ||
24 | #define IRQ_WAKEUP GOT_YOU_MORON | ||
25 | #define IRQ_MOVE_PENDING GOT_YOU_MORON | ||
26 | #define IRQ_PER_CPU GOT_YOU_MORON | 18 | #define IRQ_PER_CPU GOT_YOU_MORON |
27 | #define IRQ_NO_BALANCING GOT_YOU_MORON | 19 | #define IRQ_NO_BALANCING GOT_YOU_MORON |
28 | #define IRQ_AFFINITY_SET GOT_YOU_MORON | ||
29 | #define IRQ_LEVEL GOT_YOU_MORON | 20 | #define IRQ_LEVEL GOT_YOU_MORON |
30 | #define IRQ_NOPROBE GOT_YOU_MORON | 21 | #define IRQ_NOPROBE GOT_YOU_MORON |
31 | #define IRQ_NOREQUEST GOT_YOU_MORON | 22 | #define IRQ_NOREQUEST GOT_YOU_MORON |
@@ -37,102 +28,98 @@ enum { | |||
37 | static inline void | 28 | static inline void |
38 | irq_settings_clr_and_set(struct irq_desc *desc, u32 clr, u32 set) | 29 | irq_settings_clr_and_set(struct irq_desc *desc, u32 clr, u32 set) |
39 | { | 30 | { |
40 | desc->status &= ~(clr & _IRQF_MODIFY_MASK); | 31 | desc->status_use_accessors &= ~(clr & _IRQF_MODIFY_MASK); |
41 | desc->status |= (set & _IRQF_MODIFY_MASK); | 32 | desc->status_use_accessors |= (set & _IRQF_MODIFY_MASK); |
42 | } | 33 | } |
43 | 34 | ||
44 | static inline bool irq_settings_is_per_cpu(struct irq_desc *desc) | 35 | static inline bool irq_settings_is_per_cpu(struct irq_desc *desc) |
45 | { | 36 | { |
46 | return desc->status & _IRQ_PER_CPU; | 37 | return desc->status_use_accessors & _IRQ_PER_CPU; |
47 | } | 38 | } |
48 | 39 | ||
49 | static inline void irq_settings_set_per_cpu(struct irq_desc *desc) | 40 | static inline void irq_settings_set_per_cpu(struct irq_desc *desc) |
50 | { | 41 | { |
51 | desc->status |= _IRQ_PER_CPU; | 42 | desc->status_use_accessors |= _IRQ_PER_CPU; |
52 | } | 43 | } |
53 | 44 | ||
54 | static inline void irq_settings_set_no_balancing(struct irq_desc *desc) | 45 | static inline void irq_settings_set_no_balancing(struct irq_desc *desc) |
55 | { | 46 | { |
56 | desc->status |= _IRQ_NO_BALANCING; | 47 | desc->status_use_accessors |= _IRQ_NO_BALANCING; |
57 | } | 48 | } |
58 | 49 | ||
59 | static inline bool irq_settings_has_no_balance_set(struct irq_desc *desc) | 50 | static inline bool irq_settings_has_no_balance_set(struct irq_desc *desc) |
60 | { | 51 | { |
61 | return desc->status & _IRQ_NO_BALANCING; | 52 | return desc->status_use_accessors & _IRQ_NO_BALANCING; |
62 | } | 53 | } |
63 | 54 | ||
64 | static inline u32 irq_settings_get_trigger_mask(struct irq_desc *desc) | 55 | static inline u32 irq_settings_get_trigger_mask(struct irq_desc *desc) |
65 | { | 56 | { |
66 | return desc->status & IRQ_TYPE_SENSE_MASK; | 57 | return desc->status_use_accessors & IRQ_TYPE_SENSE_MASK; |
67 | } | 58 | } |
68 | 59 | ||
69 | static inline void | 60 | static inline void |
70 | irq_settings_set_trigger_mask(struct irq_desc *desc, u32 mask) | 61 | irq_settings_set_trigger_mask(struct irq_desc *desc, u32 mask) |
71 | { | 62 | { |
72 | desc->status &= ~IRQ_TYPE_SENSE_MASK; | 63 | desc->status_use_accessors &= ~IRQ_TYPE_SENSE_MASK; |
73 | desc->status |= mask & IRQ_TYPE_SENSE_MASK; | 64 | desc->status_use_accessors |= mask & IRQ_TYPE_SENSE_MASK; |
74 | } | 65 | } |
75 | 66 | ||
76 | static inline bool irq_settings_is_level(struct irq_desc *desc) | 67 | static inline bool irq_settings_is_level(struct irq_desc *desc) |
77 | { | 68 | { |
78 | return desc->status & _IRQ_LEVEL; | 69 | return desc->status_use_accessors & _IRQ_LEVEL; |
79 | } | 70 | } |
80 | 71 | ||
81 | static inline void irq_settings_clr_level(struct irq_desc *desc) | 72 | static inline void irq_settings_clr_level(struct irq_desc *desc) |
82 | { | 73 | { |
83 | desc->status &= ~_IRQ_LEVEL; | 74 | desc->status_use_accessors &= ~_IRQ_LEVEL; |
84 | } | 75 | } |
85 | 76 | ||
86 | static inline void irq_settings_set_level(struct irq_desc *desc) | 77 | static inline void irq_settings_set_level(struct irq_desc *desc) |
87 | { | 78 | { |
88 | desc->status |= _IRQ_LEVEL; | 79 | desc->status_use_accessors |= _IRQ_LEVEL; |
89 | } | 80 | } |
90 | 81 | ||
91 | static inline bool irq_settings_can_request(struct irq_desc *desc) | 82 | static inline bool irq_settings_can_request(struct irq_desc *desc) |
92 | { | 83 | { |
93 | return !(desc->status & _IRQ_NOREQUEST); | 84 | return !(desc->status_use_accessors & _IRQ_NOREQUEST); |
94 | } | 85 | } |
95 | 86 | ||
96 | static inline void irq_settings_clr_norequest(struct irq_desc *desc) | 87 | static inline void irq_settings_clr_norequest(struct irq_desc *desc) |
97 | { | 88 | { |
98 | desc->status &= ~_IRQ_NOREQUEST; | 89 | desc->status_use_accessors &= ~_IRQ_NOREQUEST; |
99 | } | 90 | } |
100 | 91 | ||
101 | static inline void irq_settings_set_norequest(struct irq_desc *desc) | 92 | static inline void irq_settings_set_norequest(struct irq_desc *desc) |
102 | { | 93 | { |
103 | desc->status |= _IRQ_NOREQUEST; | 94 | desc->status_use_accessors |= _IRQ_NOREQUEST; |
104 | } | 95 | } |
105 | 96 | ||
106 | static inline bool irq_settings_can_probe(struct irq_desc *desc) | 97 | static inline bool irq_settings_can_probe(struct irq_desc *desc) |
107 | { | 98 | { |
108 | return !(desc->status & _IRQ_NOPROBE); | 99 | return !(desc->status_use_accessors & _IRQ_NOPROBE); |
109 | } | 100 | } |
110 | 101 | ||
111 | static inline void irq_settings_clr_noprobe(struct irq_desc *desc) | 102 | static inline void irq_settings_clr_noprobe(struct irq_desc *desc) |
112 | { | 103 | { |
113 | desc->status &= ~_IRQ_NOPROBE; | 104 | desc->status_use_accessors &= ~_IRQ_NOPROBE; |
114 | } | 105 | } |
115 | 106 | ||
116 | static inline void irq_settings_set_noprobe(struct irq_desc *desc) | 107 | static inline void irq_settings_set_noprobe(struct irq_desc *desc) |
117 | { | 108 | { |
118 | desc->status |= _IRQ_NOPROBE; | 109 | desc->status_use_accessors |= _IRQ_NOPROBE; |
119 | } | 110 | } |
120 | 111 | ||
121 | static inline bool irq_settings_can_move_pcntxt(struct irq_desc *desc) | 112 | static inline bool irq_settings_can_move_pcntxt(struct irq_desc *desc) |
122 | { | 113 | { |
123 | return desc->status & _IRQ_MOVE_PCNTXT; | 114 | return desc->status_use_accessors & _IRQ_MOVE_PCNTXT; |
124 | } | 115 | } |
125 | 116 | ||
126 | static inline bool irq_settings_can_autoenable(struct irq_desc *desc) | 117 | static inline bool irq_settings_can_autoenable(struct irq_desc *desc) |
127 | { | 118 | { |
128 | return !(desc->status & _IRQ_NOAUTOEN); | 119 | return !(desc->status_use_accessors & _IRQ_NOAUTOEN); |
129 | } | 120 | } |
130 | 121 | ||
131 | static inline bool irq_settings_is_nested_thread(struct irq_desc *desc) | 122 | static inline bool irq_settings_is_nested_thread(struct irq_desc *desc) |
132 | { | 123 | { |
133 | return desc->status & _IRQ_NESTED_THREAD; | 124 | return desc->status_use_accessors & _IRQ_NESTED_THREAD; |
134 | } | 125 | } |
135 | |||
136 | /* Nothing should touch desc->status from now on */ | ||
137 | #undef status | ||
138 | #define status USE_THE_PROPER_WRAPPERS_YOU_MORON | ||
diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c index 83f4799f46be..dfbd550401b2 100644 --- a/kernel/irq/spurious.c +++ b/kernel/irq/spurious.c | |||
@@ -93,7 +93,6 @@ static int try_one_irq(int irq, struct irq_desc *desc, bool force) | |||
93 | * Already running: If it is shared get the other | 93 | * Already running: If it is shared get the other |
94 | * CPU to go looking for our mystery interrupt too | 94 | * CPU to go looking for our mystery interrupt too |
95 | */ | 95 | */ |
96 | irq_compat_set_pending(desc); | ||
97 | desc->istate |= IRQS_PENDING; | 96 | desc->istate |= IRQS_PENDING; |
98 | goto out; | 97 | goto out; |
99 | } | 98 | } |