genirq: Move IRQ_ONESHOT to core

No users outside of core.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Thomas Gleixner
2011-02-07 21:02:10 +01:00
parent 009b4c3b8a
commit 3d67baec7f
4 changed files with 7 additions and 6 deletions

View File

@@ -697,7 +697,7 @@ static int irq_thread(void *data)
};
struct irqaction *action = data;
struct irq_desc *desc = irq_to_desc(action->irq);
int wake, oneshot = desc->status & IRQ_ONESHOT;
int wake, oneshot = desc->istate & IRQS_ONESHOT;
sched_setscheduler(current, SCHED_FIFO, &param);
current->irqaction = action;
@@ -897,12 +897,12 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)
desc->status |= IRQ_PER_CPU;
#endif
desc->status &= ~(IRQ_WAITING | IRQ_ONESHOT);
desc->status &= ~IRQ_WAITING;
desc->istate &= ~(IRQS_AUTODETECT | IRQS_SPURIOUS_DISABLED | \
IRQS_INPROGRESS);
IRQS_INPROGRESS | IRQS_ONESHOT);
if (new->flags & IRQF_ONESHOT)
desc->status |= IRQ_ONESHOT;
desc->istate |= IRQS_ONESHOT;
if (!(desc->status & IRQ_NOAUTOEN))
irq_startup(desc);