Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb usb(4): usb event thread is not actually MP-safe.



details:   https://anonhg.NetBSD.org/src/rev/df39aa1066d2
branches:  trunk
changeset: 1021639:df39aa1066d2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jun 12 12:11:38 2021 +0000

description:
usb(4): usb event thread is not actually MP-safe.

Still requires a lot of work in usb(4), uhub(4), and autoconf(9).

diffstat:

 sys/dev/usb/usb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d7868e665a8b -r df39aa1066d2 sys/dev/usb/usb.c
--- a/sys/dev/usb/usb.c Sat Jun 12 12:11:27 2021 +0000
+++ b/sys/dev/usb/usb.c Sat Jun 12 12:11:38 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb.c,v 1.193 2021/02/24 01:46:57 mrg Exp $    */
+/*     $NetBSD: usb.c,v 1.194 2021/06/12 12:11:38 riastradh Exp $      */
 
 /*
  * Copyright (c) 1998, 2002, 2008, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.193 2021/02/24 01:46:57 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.194 2021/06/12 12:11:38 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -518,7 +518,7 @@
 {
        struct usb_softc *sc = device_private(self);
 
-       if (kthread_create(PRI_NONE, KTHREAD_MPSAFE, NULL,
+       if (kthread_create(PRI_NONE, 0, NULL,
            usb_event_thread, sc, &sc->sc_event_thread,
            "%s", device_xname(self))) {
                printf("%s: unable to create event thread for\n",



Home | Main Index | Thread Index | Old Index