Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Increase the priority of the mixing thread to improv...
details: https://anonhg.NetBSD.org/src/rev/f5666ecdefd7
branches: trunk
changeset: 352849:f5666ecdefd7
user: nat <nat%NetBSD.org@localhost>
date: Wed Apr 12 14:21:12 2017 +0000
description:
Increase the priority of the mixing thread to improve performace under
load.
This should address PR kern/52098.
diffstat:
sys/dev/audio.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 54ff22d8d017 -r f5666ecdefd7 sys/dev/audio.c
--- a/sys/dev/audio.c Wed Apr 12 14:15:50 2017 +0000
+++ b/sys/dev/audio.c Wed Apr 12 14:21:12 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.322 2017/04/12 14:15:50 nat Exp $ */
+/* $NetBSD: audio.c,v 1.323 2017/04/12 14:21:12 nat Exp $ */
/*-
* Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.322 2017/04/12 14:15:50 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.323 2017/04/12 14:21:12 nat Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -882,9 +882,9 @@
#ifdef AUDIO_PM_IDLE
callout_schedule(&sc->sc_idle_counter, audio_idle_timeout * hz);
#endif
- kthread_create(PRI_NONE, KTHREAD_MPSAFE | KTHREAD_MUSTJOIN, NULL,
+ kthread_create(PRI_BIO, KTHREAD_MPSAFE | KTHREAD_MUSTJOIN, NULL,
audio_rec_thread, sc, &sc->sc_recthread, "audiorec");
- kthread_create(PRI_NONE, KTHREAD_MPSAFE | KTHREAD_MUSTJOIN, NULL,
+ kthread_create(PRI_BIO, KTHREAD_MPSAFE | KTHREAD_MUSTJOIN, NULL,
audio_play_thread, sc, &sc->sc_playthread, "audiomix");
audiorescan(self, "audio", NULL);
}
Home |
Main Index |
Thread Index |
Old Index