diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-11-24 16:19:34 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-11-24 16:19:34 +0000 |
commit | ffa1f16237a0760c0512257307470e18cd9d06fb (patch) | |
tree | 136c847b0746343931885cc647f453eb52ced5fd /sys/arch/sparc64/dev | |
parent | ada0637547df4a374f7d1f90ba562de57bbf2ec2 (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.c | 5 |
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); } |