Skip to content

Commit

Permalink
irq_poll: fold irq_poll_disable_pending into irq_poll_softirq
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
  • Loading branch information
Christoph Hellwig committed Dec 11, 2015
1 parent ea51190 commit 0bc92ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions include/linux/irq_poll.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down
2 changes: 1 addition & 1 deletion lib/irq_poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0bc92ac

Please sign in to comment.