summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-11-24 16:19:34 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-11-24 16:19:34 +0000
commitffa1f16237a0760c0512257307470e18cd9d06fb (patch)
tree136c847b0746343931885cc647f453eb52ced5fd /sys/arch/sparc64/dev
parentada0637547df4a374f7d1f90ba562de57bbf2ec2 (diff)
Only schedule a soft interrupt if the device has been opened (and sc_tty
has been initialized).
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/vcons.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vcons.c b/sys/arch/sparc64/dev/vcons.c
index ca00fc0d46f..8cb47894af6 100644
--- a/sys/arch/sparc64/dev/vcons.c
+++ b/sys/arch/sparc64/dev/vcons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vcons.c,v 1.4 2008/10/12 09:18:24 kettenis Exp $ */
+/* $OpenBSD: vcons.c,v 1.5 2008/11/24 16:19:33 kettenis Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
*
@@ -111,7 +111,8 @@ vcons_intr(void *arg)
{
struct vcons_softc *sc = arg;
- softintr_schedule(sc->sc_si);
+ if (sc->sc_tty)
+ softintr_schedule(sc->sc_si);
return (1);
}