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/vldcp.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/vldcp.c')
-rw-r--r-- | sys/arch/sparc64/dev/vldcp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/vldcp.c b/sys/arch/sparc64/dev/vldcp.c index e8973f348c7..34e9d8f1e66 100644 --- a/sys/arch/sparc64/dev/vldcp.c +++ b/sys/arch/sparc64/dev/vldcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vldcp.c,v 1.3 2012/10/21 17:30:38 kettenis Exp $ */ +/* $OpenBSD: vldcp.c,v 1.4 2012/10/26 20:57:08 kettenis Exp $ */ /* * Copyright (c) 2009, 2012 Mark Kettenis * @@ -137,9 +137,6 @@ vldcp_attach(struct device *parent, struct device *self, void *aux) return; } - 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; |