]> git.karo-electronics.de Git - linux-beck.git/commitdiff
irq_poll: fold irq_poll_disable_pending into irq_poll_softirq
authorChristoph Hellwig <hch@lst.de>
Mon, 7 Dec 2015 14:56:36 +0000 (06:56 -0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 11 Dec 2015 19:52:27 +0000 (11:52 -0800)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
include/linux/irq_poll.h
lib/irq_poll.c

index 57efae66140028391eba5032c5e188ba3ffb4bef..b4ad03cee9d41c6156a2b959c83673a9d26b8c91 100644 (file)
@@ -18,11 +18,6 @@ enum {
        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 *);
index 43a3370a09fd69769f0817dda7829e535587d859..53d67e341ebb7b7fb5c468a5389500376094cb8b 100644 (file)
@@ -122,7 +122,7 @@ static void irq_poll_softirq(struct softirq_action *h)
                 * 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);