Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/bluetooth Wrap up calls to softint_schedule in kpeem...
details: https://anonhg.NetBSD.org/src/rev/5105be02f7bd
branches: trunk
changeset: 339294:5105be02f7bd
user: nat <nat%NetBSD.org@localhost>
date: Fri Jul 10 22:03:12 2015 +0000
description:
Wrap up calls to softint_schedule in kpeempt_[dis/en]able.
Addresses PR kern/48459.
This commit was approved by christos@
diffstat:
sys/dev/bluetooth/btsco.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 5f7843357fc9 -r 5105be02f7bd sys/dev/bluetooth/btsco.c
--- a/sys/dev/bluetooth/btsco.c Fri Jul 10 21:58:56 2015 +0000
+++ b/sys/dev/bluetooth/btsco.c Fri Jul 10 22:03:12 2015 +0000
@@ -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 @@
sc->sc_tx_intr = intr;
sc->sc_tx_intrarg = intrarg;
+ kpreempt_disable();
softint_schedule(sc->sc_intr);
+ kpreempt_enable();
return 0;
}
Home |
Main Index |
Thread Index |
Old Index