From b16bbd430148907528f336c8814576e816fc5b70 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 16 Jul 2013 19:46:57 +0000 Subject: The interrupt handler for vcons(4) is defenitely safe to run without holding the kernel lock, so use BUS_INTR_ESTABLISH_MPSAFE. --- sys/arch/sparc64/dev/vcons.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/sparc64/dev') diff --git a/sys/arch/sparc64/dev/vcons.c b/sys/arch/sparc64/dev/vcons.c index 4cc71a409b9..e635f090d2f 100644 --- a/sys/arch/sparc64/dev/vcons.c +++ b/sys/arch/sparc64/dev/vcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vcons.c,v 1.12 2012/10/20 12:00:33 miod Exp $ */ +/* $OpenBSD: vcons.c,v 1.13 2013/07/16 19:46:56 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -90,8 +90,8 @@ vcons_attach(struct device *parent, struct device *self, void *aux) printf(": can't map interrupt\n"); printf(": ivec 0x%lx", sysino); - sc->sc_ih = bus_intr_establish(va->va_bustag, sysino, IPL_TTY, 0, - vcons_intr, sc, sc->sc_dv.dv_xname); + sc->sc_ih = bus_intr_establish(va->va_bustag, sysino, IPL_TTY, + BUS_INTR_ESTABLISH_MPSAFE, vcons_intr, sc, sc->sc_dv.dv_xname); if (sc->sc_ih == NULL) { printf(", can't establish interrupt\n"); return; -- cgit v1.2.3