Skip to content

Commit 6954b75

Browse files
committed
genirq: Move IRQ_POLL_INPROGRESS to core
No users outside of core. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 6f91a52 commit 6954b75

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎include/linux/irq.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ typedef void (*irq_flow_handler_t)(unsigned int irq,
6969
#define IRQ_SUSPENDED 0x04000000 /* IRQ has gone through suspend sequence */
7070
#define IRQ_ONESHOT 0x08000000 /* IRQ is not unmasked after hardirq */
7171
#define IRQ_NESTED_THREAD 0x10000000 /* IRQ is nested into another, no own handler thread */
72-
#define IRQ_POLL_INPROGRESS 0x20000000 /* IRQ poll is in progress */
7372

7473
#define IRQF_MODIFY_MASK \
7574
(IRQ_TYPE_SENSE_MASK | IRQ_NOPROBE | IRQ_NOREQUEST | \

‎kernel/irq/chip.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ EXPORT_SYMBOL_GPL(handle_nested_irq);
400400

401401
static bool irq_check_poll(struct irq_desc *desc)
402402
{
403-
if (!(desc->status & IRQ_POLL_INPROGRESS))
403+
if (!(desc->istate & IRQS_POLL_INPROGRESS))
404404
return false;
405405
return irq_wait_for_poll(desc);
406406
}

‎kernel/irq/internals.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ enum {
3939
* IRQS_AUTODETECT - autodetection in progress
4040
* IRQS_SPURIOUS_DISABLED - was disabled due to spurious interrupt
4141
* detection
42+
* IRQS_POLL_INPROGRESS - polling in progress
4243
*/
4344
enum {
4445
IRQS_AUTODETECT = 0x00000001,
4546
IRQS_SPURIOUS_DISABLED = 0x00000002,
47+
IRQS_POLL_INPROGRESS = 0x00000008,
4648
};
4749

4850
#define irq_data_to_desc(data) container_of(data, struct irq_desc, irq_data)

‎kernel/irq/spurious.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ static int try_one_irq(int irq, struct irq_desc *desc, bool force)
9898
}
9999

100100
/* Mark it poll in progress */
101-
desc->status |= IRQ_POLL_INPROGRESS;
101+
desc->istate |= IRQS_POLL_INPROGRESS;
102102
do {
103103
if (handle_irq_event(desc) == IRQ_HANDLED)
104104
ret = IRQ_HANDLED;
105105
action = desc->action;
106106
} while ((desc->status & IRQ_PENDING) && action);
107-
desc->status &= ~IRQ_POLL_INPROGRESS;
107+
desc->istate &= ~IRQS_POLL_INPROGRESS;
108108
out:
109109
raw_spin_unlock(&desc->lock);
110110
return ret == IRQ_HANDLED;
@@ -259,7 +259,7 @@ try_misrouted_irq(unsigned int irq, struct irq_desc *desc,
259259
void note_interrupt(unsigned int irq, struct irq_desc *desc,
260260
irqreturn_t action_ret)
261261
{
262-
if (desc->status & IRQ_POLL_INPROGRESS)
262+
if (desc->istate & IRQS_POLL_INPROGRESS)
263263
return;
264264

265265
if (unlikely(action_ret != IRQ_HANDLED)) {

0 commit comments

Comments
 (0)