diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-14 07:33:16 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:15 -0500 |
commit | 6f91a52d9bb28396177662f1da0f2e2cef9cf5d0 (patch) | |
tree | 0be983e2d1c1a622716cff61354f02e85ef3352e /kernel/irq | |
parent | 7acdd53e5b2c55b6f7e3427e85e2f91fa814a4f9 (diff) |
genirq: Use modify_status for set_irq_nested_thread
No need for a separate function in the core code.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/chip.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 143eb2a9fa4e..bff21f233a02 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -164,34 +164,6 @@ struct irq_data *irq_get_irq_data(unsigned int irq) | |||
164 | } | 164 | } |
165 | EXPORT_SYMBOL_GPL(irq_get_irq_data); | 165 | EXPORT_SYMBOL_GPL(irq_get_irq_data); |
166 | 166 | ||
167 | /** | ||
168 | * set_irq_nested_thread - Set/Reset the IRQ_NESTED_THREAD flag of an irq | ||
169 | * | ||
170 | * @irq: Interrupt number | ||
171 | * @nest: 0 to clear / 1 to set the IRQ_NESTED_THREAD flag | ||
172 | * | ||
173 | * The IRQ_NESTED_THREAD flag indicates that on | ||
174 | * request_threaded_irq() no separate interrupt thread should be | ||
175 | * created for the irq as the handler are called nested in the | ||
176 | * context of a demultiplexing interrupt handler thread. | ||
177 | */ | ||
178 | void set_irq_nested_thread(unsigned int irq, int nest) | ||
179 | { | ||
180 | struct irq_desc *desc = irq_to_desc(irq); | ||
181 | unsigned long flags; | ||
182 | |||
183 | if (!desc) | ||
184 | return; | ||
185 | |||
186 | raw_spin_lock_irqsave(&desc->lock, flags); | ||
187 | if (nest) | ||
188 | desc->status |= IRQ_NESTED_THREAD; | ||
189 | else | ||
190 | desc->status &= ~IRQ_NESTED_THREAD; | ||
191 | raw_spin_unlock_irqrestore(&desc->lock, flags); | ||
192 | } | ||
193 | EXPORT_SYMBOL_GPL(set_irq_nested_thread); | ||
194 | |||
195 | int irq_startup(struct irq_desc *desc) | 167 | int irq_startup(struct irq_desc *desc) |
196 | { | 168 | { |
197 | desc->status &= ~IRQ_DISABLED; | 169 | desc->status &= ~IRQ_DISABLED; |