Module Name: src
Committed By: riastradh
Date: Sat Jun 12 12:11:38 UTC 2021
Modified Files:
src/sys/dev/usb: usb.c
Log Message:
usb(4): usb event thread is not actually MP-safe.
Still requires a lot of work in usb(4), uhub(4), and autoconf(9).
To generate a diff of this commit:
cvs rdiff -u -r1.193 -r1.194 src/sys/dev/usb/usb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/usb.c
diff -u src/sys/dev/usb/usb.c:1.193 src/sys/dev/usb/usb.c:1.194
--- src/sys/dev/usb/usb.c:1.193 Wed Feb 24 01:46:57 2021
+++ src/sys/dev/usb/usb.c Sat Jun 12 12:11:38 2021
@@ -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 @@ usb_create_event_thread(device_t self)
{
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",