diff options
author | 2018-06-18 15:01:22 +0000 | |
---|---|---|
committer | 2018-06-18 15:01:22 +0000 | |
commit | 5653bc9ee19172de7a715b148c8347a111c2d48d (patch) | |
tree | 80640ca16f90f1ac4220ef65ff6e9bf6a8c4a58c /sys/dev/sdmmc | |
parent | explicitly disable the only warning that this hack triggers (diff) | |
download | wireguard-openbsd-5653bc9ee19172de7a715b148c8347a111c2d48d.tar.xz wireguard-openbsd-5653bc9ee19172de7a715b148c8347a111c2d48d.zip |
Run the code to handle interrupts directly from the interrupt handler
instead of from a task. The sdmmc(4) interrupt handler is already
executed in process context and returning from the interrupt handler
without acknowledging the interrupts may lead to an interrupt storm.
ok patrick@
Diffstat (limited to 'sys/dev/sdmmc')
-rw-r--r-- | sys/dev/sdmmc/if_bwfm_sdio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/sdmmc/if_bwfm_sdio.c b/sys/dev/sdmmc/if_bwfm_sdio.c index 2edaecbb028..fb902815cf2 100644 --- a/sys/dev/sdmmc/if_bwfm_sdio.c +++ b/sys/dev/sdmmc/if_bwfm_sdio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_sdio.c,v 1.19 2018/05/30 14:04:53 patrick Exp $ */ +/* $OpenBSD: if_bwfm_sdio.c,v 1.20 2018/06/18 15:01:22 kettenis Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se> @@ -635,8 +635,7 @@ bwfm_sdio_readshared(struct bwfm_sdio_softc *sc) int bwfm_sdio_intr(void *v) { - struct bwfm_sdio_softc *sc = (void *)v; - task_add(systq, &sc->sc_task); + bwfm_sdio_task(v); return 1; } |