summaryrefslogtreecommitdiffstats
path: root/lib/irq_poll.c
diff options
context:
space:
mode:
authorChristoph Hellwig2015-12-07 15:38:28 +0100
committerChristoph Hellwig2015-12-11 20:52:25 +0100
commit78d0264eb7a938f1eaf59fcb2d3f7da2567369d3 (patch)
treea6e47a7af610dd802b202b1e03b89d69f61a6fc1 /lib/irq_poll.c
parentirq_poll: make blk-iopoll available outside the block layer (diff)
downloadkernel-qcow2-linux-78d0264eb7a938f1eaf59fcb2d3f7da2567369d3.tar.gz
kernel-qcow2-linux-78d0264eb7a938f1eaf59fcb2d3f7da2567369d3.tar.xz
kernel-qcow2-linux-78d0264eb7a938f1eaf59fcb2d3f7da2567369d3.zip
irq_poll: don't disable new irq_poll instances
There is no good reason to start out disabled - drivers can control if the poll instance can be scheduled by simply not scheduling it yet. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Diffstat (limited to 'lib/irq_poll.c')
-rw-r--r--lib/irq_poll.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/irq_poll.c b/lib/irq_poll.c
index e6fd1dc0908b..88af87971e8c 100644
--- a/lib/irq_poll.c
+++ b/lib/irq_poll.c
@@ -170,8 +170,7 @@ EXPORT_SYMBOL(irq_poll_enable);
* @poll_fn: The handler to invoke
*
* Description:
- * Initialize this irq_poll structure. Before being actively used, the
- * driver must call irq_poll_enable().
+ * Initialize and enable this irq_poll structure.
**/
void irq_poll_init(struct irq_poll *iop, int weight, irq_poll_fn *poll_fn)
{
@@ -179,7 +178,6 @@ void irq_poll_init(struct irq_poll *iop, int weight, irq_poll_fn *poll_fn)
INIT_LIST_HEAD(&iop->list);
iop->weight = weight;
iop->poll = poll_fn;
- set_bit(IRQ_POLL_F_SCHED, &iop->state);
}
EXPORT_SYMBOL(irq_poll_init);