summaryrefslogtreecommitdiffstats
path: root/drivers/char/hvc_irq.c
diff options
context:
space:
mode:
authorHendrik Brueckner2008-10-14 01:12:48 +0200
committerBenjamin Herrenschmidt2008-10-22 01:59:54 +0200
commitfc362e2e0efd8b652ebfb409a4e43e6189c04f6f (patch)
tree9cffc84bcc4e615ee08f0f47ff58a7131b55194a /drivers/char/hvc_irq.c
parentMerge commit 'origin' into master (diff)
downloadkernel-qcow2-linux-fc362e2e0efd8b652ebfb409a4e43e6189c04f6f.tar.gz
kernel-qcow2-linux-fc362e2e0efd8b652ebfb409a4e43e6189c04f6f.tar.xz
kernel-qcow2-linux-fc362e2e0efd8b652ebfb409a4e43e6189c04f6f.zip
hvc_console: Add a hangup notifier for backends
I have added a hangup notifier that can be used by hvc console backends to handle a tty hangup. The default irq hangup notifier calls the notifier_del_irq() for compatibility. Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/char/hvc_irq.c')
-rw-r--r--drivers/char/hvc_irq.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/hvc_irq.c b/drivers/char/hvc_irq.c
index 73a59cdb8947..d09e5688d449 100644
--- a/drivers/char/hvc_irq.c
+++ b/drivers/char/hvc_irq.c
@@ -42,3 +42,8 @@ void notifier_del_irq(struct hvc_struct *hp, int irq)
free_irq(irq, hp);
hp->irq_requested = 0;
}
+
+void notifier_hangup_irq(struct hvc_struct *hp, int irq)
+{
+ notifier_del_irq(hp, irq);
+}