Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/cardbus Ensure event_thread stays in event loop upon...
details: https://anonhg.NetBSD.org/src/rev/a1feb7e5a91b
branches: trunk
changeset: 976790:a1feb7e5a91b
user: nat <nat%NetBSD.org@localhost>
date: Sun Oct 04 06:15:54 2020 +0000
description:
Ensure event_thread stays in event loop upon creation.
diffstat:
sys/dev/cardbus/cardslot.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 837219addd61 -r a1feb7e5a91b sys/dev/cardbus/cardslot.c
--- a/sys/dev/cardbus/cardslot.c Sat Oct 03 23:16:28 2020 +0000
+++ b/sys/dev/cardbus/cardslot.c Sun Oct 04 06:15:54 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cardslot.c,v 1.56 2016/09/24 23:54:49 mrg Exp $ */
+/* $NetBSD: cardslot.c,v 1.57 2020/10/04 06:15:54 nat Exp $ */
/*
* Copyright (c) 1999 and 2000
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cardslot.c,v 1.56 2016/09/24 23:54:49 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cardslot.c,v 1.57 2020/10/04 06:15:54 nat Exp $");
#include "opt_cardslot.h"
@@ -157,6 +157,7 @@
}
if (csc != NULL || psc != NULL) {
+ sc->sc_th_enable = 1;
config_pending_incr(self);
if (kthread_create(PRI_NONE, 0, NULL, cardslot_event_thread,
sc, &sc->sc_event_thread, "%s", device_xname(self))) {
@@ -164,7 +165,6 @@
"unable to create thread\n");
panic("cardslotattach");
}
- sc->sc_th_enable = 1;
}
if (csc && (csc->sc_cf->cardbus_ctrl)(csc->sc_cc, CARDBUS_CD)) {
Home |
Main Index |
Thread Index |
Old Index