diff options
author | Christoph Hellwig <hch@lst.de> | 2015-12-07 09:41:11 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2015-12-11 14:52:26 -0500 |
commit | ea51190c03150fce4d9e428bfb608abbe0991db8 (patch) | |
tree | 80c61fdc0817b5f1c5667155cf7256f688b71c63 /include/linux/irq_poll.h | |
parent | 78d0264eb7a938f1eaf59fcb2d3f7da2567369d3 (diff) |
irq_poll: fold irq_poll_sched_prep into irq_poll_sched
There is no good reason to keep them apart, and this makes using the API
a bit simpler.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Diffstat (limited to 'include/linux/irq_poll.h')
-rw-r--r-- | include/linux/irq_poll.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/irq_poll.h b/include/linux/irq_poll.h index 50c39dcd2cba..57efae661400 100644 --- a/include/linux/irq_poll.h +++ b/include/linux/irq_poll.h | |||
@@ -18,19 +18,6 @@ enum { | |||
18 | IRQ_POLL_F_DISABLE = 1, | 18 | IRQ_POLL_F_DISABLE = 1, |
19 | }; | 19 | }; |
20 | 20 | ||
21 | /* | ||
22 | * Returns 0 if we successfully set the IRQ_POLL_F_SCHED bit, indicating | ||
23 | * that we were the first to acquire this iop for scheduling. If this iop | ||
24 | * is currently disabled, return "failure". | ||
25 | */ | ||
26 | static inline int irq_poll_sched_prep(struct irq_poll *iop) | ||
27 | { | ||
28 | if (!test_bit(IRQ_POLL_F_DISABLE, &iop->state)) | ||
29 | return test_and_set_bit(IRQ_POLL_F_SCHED, &iop->state); | ||
30 | |||
31 | return 1; | ||
32 | } | ||
33 | |||
34 | static inline int irq_poll_disable_pending(struct irq_poll *iop) | 21 | static inline int irq_poll_disable_pending(struct irq_poll *iop) |
35 | { | 22 | { |
36 | return test_bit(IRQ_POLL_F_DISABLE, &iop->state); | 23 | return test_bit(IRQ_POLL_F_DISABLE, &iop->state); |