diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-10-26 20:57:09 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-10-26 20:57:09 +0000 |
commit | 7d41be046b9e96106c664ba02451a7a3b5c954f6 (patch) | |
tree | bef84596bdb74f2338ba0c042096445dd3e7aed8 /sys/arch/sparc64/dev/vdsp.c | |
parent | 5d26c2a62ef5a021ff14d9c55693b39494397394 (diff) |
Turns out that for devices that attach to cbus(4), it is better to disable
interrupts up-front and explicitly enabling them later than the other way
around.
Diffstat (limited to 'sys/arch/sparc64/dev/vdsp.c')
-rw-r--r-- | sys/arch/sparc64/dev/vdsp.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/arch/sparc64/dev/vdsp.c b/sys/arch/sparc64/dev/vdsp.c index 6bcf6e75cd2..9db26fb9ad6 100644 --- a/sys/arch/sparc64/dev/vdsp.c +++ b/sys/arch/sparc64/dev/vdsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vdsp.c,v 1.12 2012/10/21 19:30:56 kettenis Exp $ */ +/* $OpenBSD: vdsp.c,v 1.13 2012/10/26 20:57:08 kettenis Exp $ */ /* * Copyright (c) 2009, 2011 Mark Kettenis * @@ -338,14 +338,6 @@ vdsp_attach(struct device *parent, struct device *self, void *aux) return; } - /* - * Disable interrupts while we have no queues allocated. - * Otherwise we may end up with an interrupt storm as soon as - * our peer places a packet in their transmit queue. - */ - cbus_intr_setenabled(sc->sc_tx_sysino, INTR_DISABLED); - cbus_intr_setenabled(sc->sc_rx_sysino, INTR_DISABLED); - lc = &sc->sc_lc; lc->lc_id = ca->ca_id; lc->lc_sc = sc; |