Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Revert previous for a better fix.
details: https://anonhg.NetBSD.org/src/rev/48e1e2148574
branches: trunk
changeset: 994938:48e1e2148574
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Wed Nov 28 19:36:43 2018 +0000
description:
Revert previous for a better fix.
diffstat:
sys/kern/kern_synch.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diffs (32 lines):
diff -r 64cabdbff5ed -r 48e1e2148574 sys/kern/kern_synch.c
--- a/sys/kern/kern_synch.c Wed Nov 28 19:15:32 2018 +0000
+++ b/sys/kern/kern_synch.c Wed Nov 28 19:36:43 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_synch.c,v 1.319 2018/11/28 09:44:49 mlelstv Exp $ */
+/* $NetBSD: kern_synch.c,v 1.320 2018/11/28 19:36:43 mlelstv Exp $ */
/*-
* Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2009
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.319 2018/11/28 09:44:49 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.320 2018/11/28 19:36:43 mlelstv Exp $");
#include "opt_kstack.h"
#include "opt_dtrace.h"
@@ -292,12 +292,7 @@
KASSERT(l->l_stat == LSONPROC);
l->l_kpriority = false;
l->l_nivcsw++;
- if (mi_switch(l) == 0) {
- /* we didn't switch */
- lwp_lock(l);
- l->l_nivcsw--;
- lwp_unlock(l);
- }
+ (void)mi_switch(l);
KERNEL_LOCK(l->l_biglocks, l);
}
Home |
Main Index |
Thread Index |
Old Index