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/record threads a...



details:   https://anonhg.NetBSD.org/src/rev/d709c38f5d71
branches:  trunk
changeset: 353612:d709c38f5d71
user:      nat <nat%NetBSD.org@localhost>
date:      Sun May 14 10:57:32 2017 +0000

description:
Increase the priority of the mixing/record threads as high as possibile.

Suggested by mrg@.

diffstat:

 sys/dev/audio.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 5e4fc5256dad -r d709c38f5d71 sys/dev/audio.c
--- a/sys/dev/audio.c   Sun May 14 10:53:26 2017 +0000
+++ b/sys/dev/audio.c   Sun May 14 10:57:32 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.345 2017/05/14 10:08:49 nat Exp $  */
+/*     $NetBSD: audio.c,v 1.346 2017/05/14 10:57:32 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.345 2017/05/14 10:08:49 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.346 2017/05/14 10:57:32 nat Exp $");
 
 #include "audio.h"
 #if NAUDIO > 0
@@ -872,9 +872,9 @@
 #ifdef AUDIO_PM_IDLE
        callout_schedule(&sc->sc_idle_counter, audio_idle_timeout * hz);
 #endif
-       kthread_create(PRI_SOFTBIO, KTHREAD_MPSAFE | KTHREAD_MUSTJOIN, NULL,
+       kthread_create(PRI_SOFTSERIAL, KTHREAD_MPSAFE | KTHREAD_MUSTJOIN, NULL,
            audio_rec_thread, sc, &sc->sc_recthread, "audiorec");
-       kthread_create(PRI_SOFTBIO, KTHREAD_MPSAFE | KTHREAD_MUSTJOIN, NULL,
+       kthread_create(PRI_SOFTSERIAL, KTHREAD_MPSAFE | KTHREAD_MUSTJOIN, NULL,
            audio_play_thread, sc, &sc->sc_playthread, "audiomix");
        audiorescan(self, "audio", NULL);
 }



Home | Main Index | Thread Index | Old Index