aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/internals.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-07 14:25:25 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-19 06:58:15 -0500
commitbd062e7667ac173afef57fbfe9327f3b914a9d4c (patch)
tree29e798cb397311abec53ad45b73efdede1fc37b7 /kernel/irq/internals.h
parente6bea9c404699223322d7411c6f2ceaec02fa83c (diff)
genirq: Move IRQ_AUTODETECT to internal state
No users outside of core Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/internals.h')
-rw-r--r--kernel/irq/internals.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h
index 8f200310a952..7ffd4f439b92 100644
--- a/kernel/irq/internals.h
+++ b/kernel/irq/internals.h
@@ -33,6 +33,15 @@ enum {
33 IRQTF_AFFINITY, 33 IRQTF_AFFINITY,
34}; 34};
35 35
36/*
37 * Bit masks for desc->state
38 *
39 * IRQS_AUTODETECT - autodetection in progress
40 */
41enum {
42 IRQS_AUTODETECT = 0x00000001,
43};
44
36#define irq_data_to_desc(data) container_of(data, struct irq_desc, irq_data) 45#define irq_data_to_desc(data) container_of(data, struct irq_desc, irq_data)
37 46
38/* Set default functions for irq_chip structures: */ 47/* Set default functions for irq_chip structures: */
@@ -98,6 +107,7 @@ static inline void chip_bus_sync_unlock(struct irq_desc *desc)
98#include <linux/kallsyms.h> 107#include <linux/kallsyms.h>
99 108
100#define P(f) if (desc->status & f) printk("%14s set\n", #f) 109#define P(f) if (desc->status & f) printk("%14s set\n", #f)
110#define PS(f) if (desc->istate & f) printk("%14s set\n", #f)
101 111
102static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc) 112static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc)
103{ 113{
@@ -117,7 +127,6 @@ static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc)
117 P(IRQ_DISABLED); 127 P(IRQ_DISABLED);
118 P(IRQ_PENDING); 128 P(IRQ_PENDING);
119 P(IRQ_REPLAY); 129 P(IRQ_REPLAY);
120 P(IRQ_AUTODETECT);
121 P(IRQ_WAITING); 130 P(IRQ_WAITING);
122 P(IRQ_LEVEL); 131 P(IRQ_LEVEL);
123 P(IRQ_MASKED); 132 P(IRQ_MASKED);
@@ -127,7 +136,9 @@ static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc)
127 P(IRQ_NOPROBE); 136 P(IRQ_NOPROBE);
128 P(IRQ_NOREQUEST); 137 P(IRQ_NOREQUEST);
129 P(IRQ_NOAUTOEN); 138 P(IRQ_NOAUTOEN);
139
140 PS(IRQS_AUTODETECT);
130} 141}
131 142
132#undef P 143#undef P
133 144#undef PS