Wrap up calls to softint_schedule in kpeempt_[dis/en]able.

Addresses PR kern/48459.

This commit was approved by christos@
This commit is contained in:
nat 2015-07-10 22:03:12 +00:00
parent 79728ed766
commit 8476b0d2f1
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}