Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc The config_* APIs are not MPSAFE, so make sure...
details: https://anonhg.NetBSD.org/src/rev/b262d4cc8cab
branches: trunk
changeset: 355017:b262d4cc8cab
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jul 08 18:38:57 2017 +0000
description:
The config_* APIs are not MPSAFE, so make sure the deferred attach
thread holds KERNEL_LOCK.
diffstat:
sys/dev/sdmmc/ld_sdmmc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8d974cd87db1 -r b262d4cc8cab sys/dev/sdmmc/ld_sdmmc.c
--- a/sys/dev/sdmmc/ld_sdmmc.c Sat Jul 08 16:20:21 2017 +0000
+++ b/sys/dev/sdmmc/ld_sdmmc.c Sat Jul 08 18:38:57 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_sdmmc.c,v 1.28 2017/06/24 11:27:33 jmcneill Exp $ */
+/* $NetBSD: ld_sdmmc.c,v 1.29 2017/07/08 18:38:57 jmcneill Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_sdmmc.c,v 1.28 2017/06/24 11:27:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_sdmmc.c,v 1.29 2017/07/08 18:38:57 jmcneill Exp $");
#ifdef _KERNEL_OPT
#include "opt_sdmmc.h"
@@ -157,7 +157,7 @@
* when wedge is supported.
*/
config_pending_incr(self);
- if (kthread_create(PRI_NONE, KTHREAD_MPSAFE, NULL,
+ if (kthread_create(PRI_NONE, 0, NULL,
ld_sdmmc_doattach, sc, &lwp, "%sattach", device_xname(self))) {
aprint_error_dev(self, "couldn't create thread\n");
}
Home |
Main Index |
Thread Index |
Old Index