aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-09-02 09:17:53 -0400
committerRusty Russell <rusty@rustcorp.com.au>2010-10-21 03:14:04 -0400
commit55f6bcce3691f68476a530daa6666b66c43420a8 (patch)
treefa3b524b4be9b8d18509cb85095846f9ee088f15 /drivers/char
parent3eae0adea949d8fdd8fa3e5301192901219d2c64 (diff)
virtio: console: Send SIGIO on new data arrival on ports
Send a SIGIO signal when new data arrives on a port. This is sent only when the process has requested for the signal to be sent using fcntl(). Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/virtio_console.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index c4ca43694233..6d5c579b1693 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -1483,6 +1483,9 @@ static void in_intr(struct virtqueue *vq)
1483 1483
1484 wake_up_interruptible(&port->waitqueue); 1484 wake_up_interruptible(&port->waitqueue);
1485 1485
1486 /* Send a SIGIO indicating new data in case the process asked for it */
1487 send_sigio_to_port(port);
1488
1486 if (is_console_port(port) && hvc_poll(port->cons.hvc)) 1489 if (is_console_port(port) && hvc_poll(port->cons.hvc))
1487 hvc_kick(); 1490 hvc_kick();
1488} 1491}