diff options
| author | nat <nat@NetBSD.org> | 2015-07-10 22:03:12 +0000 |
|---|---|---|
| committer | nat <nat@NetBSD.org> | 2015-07-10 22:03:12 +0000 |
| commit | eadeff647b6e17011eef3f2cc6bd2a0368c5d54b (patch) | |
| tree | a25168399c3e440e95a38fbc2ea64a0bcf6f2600 /sys/dev/bluetooth | |
| parent | 85c52cb3ffd7c190b7024d2ff003ac11c4eae49c (diff) | |
Wrap up calls to softint_schedule in kpeempt_[dis/en]able.
Addresses PR kern/48459.
This commit was approved by christos@
Diffstat (limited to 'sys/dev/bluetooth')
| -rw-r--r-- | sys/dev/bluetooth/btsco.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/bluetooth/btsco.c b/sys/dev/bluetooth/btsco.c index 4d6ede3a0cd..6137818580e 100644 --- a/sys/dev/bluetooth/btsco.c +++ b/sys/dev/bluetooth/btsco.c @@ -1,4 +1,4 @@ -/* $NetBSD: btsco.c,v 1.33 2014/08/05 07:55:31 rtr Exp $ */ +/* $NetBSD: btsco.c,v 1.34 2015/07/10 22:03:12 nat Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: btsco.c,v 1.33 2014/08/05 07:55:31 rtr Exp $"); +__KERNEL_RCSID(0, "$NetBSD: btsco.c,v 1.34 2015/07/10 22:03:12 nat Exp $"); #include <sys/param.h> #include <sys/audioio.h> @@ -798,7 +798,9 @@ btsco_start_output(void *hdl, void *block, int blksize, sc->sc_tx_intr = intr; sc->sc_tx_intrarg = intrarg; + kpreempt_disable(); softint_schedule(sc->sc_intr); + kpreempt_enable(); return 0; } |
