mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
78d0264eb7
commit
ea51190c03
4 changed files with 10 additions and 22 deletions
|
@ -18,19 +18,6 @@ enum {
|
|||
IRQ_POLL_F_DISABLE = 1,
|
||||
};
|
||||
|
||||
/*
|
||||
* Returns 0 if we successfully set the IRQ_POLL_F_SCHED bit, indicating
|
||||
* that we were the first to acquire this iop for scheduling. If this iop
|
||||
* is currently disabled, return "failure".
|
||||
*/
|
||||
static inline int irq_poll_sched_prep(struct irq_poll *iop)
|
||||
{
|
||||
if (!test_bit(IRQ_POLL_F_DISABLE, &iop->state))
|
||||
return test_and_set_bit(IRQ_POLL_F_SCHED, &iop->state);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static inline int irq_poll_disable_pending(struct irq_poll *iop)
|
||||
{
|
||||
return test_bit(IRQ_POLL_F_DISABLE, &iop->state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue