Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
IRQ_POLL_F_DISABLE = 1,
};
-static inline int irq_poll_disable_pending(struct irq_poll *iop)
-{
- return test_bit(IRQ_POLL_F_DISABLE, &iop->state);
-}
-
extern void irq_poll_sched(struct irq_poll *);
extern void irq_poll_init(struct irq_poll *, int, irq_poll_fn *);
extern void irq_poll_complete(struct irq_poll *);
* move the instance around on the list at-will.
*/
if (work >= weight) {
- if (irq_poll_disable_pending(iop))
+ if (test_bit(IRQ_POLL_F_DISABLE, &iop->state))
__irq_poll_complete(iop);
else
list_move_tail(&iop->list, list);