Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Put back missing set of SPCF_SHOULDYIELD.
details: https://anonhg.NetBSD.org/src/rev/1cabb9245a0f
branches: trunk
changeset: 1008120:1cabb9245a0f
user: ad <ad%NetBSD.org@localhost>
date: Thu Mar 12 10:44:00 2020 +0000
description:
Put back missing set of SPCF_SHOULDYIELD.
diffstat:
sys/kern/sched_4bsd.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r f239e637d52a -r 1cabb9245a0f sys/kern/sched_4bsd.c
--- a/sys/kern/sched_4bsd.c Thu Mar 12 09:38:10 2020 +0000
+++ b/sys/kern/sched_4bsd.c Thu Mar 12 10:44:00 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sched_4bsd.c,v 1.42 2020/01/09 16:35:03 ad Exp $ */
+/* $NetBSD: sched_4bsd.c,v 1.43 2020/03/12 10:44:00 ad Exp $ */
/*
* Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2019, 2020
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.42 2020/01/09 16:35:03 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.43 2020/03/12 10:44:00 ad Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -147,6 +147,7 @@
* Indicate that the process should yield.
*/
pri = MAXPRI_KTHREAD;
+ spc->spc_flags |= SPCF_SHOULDYIELD;
} else if ((spc->spc_flags & SPCF_1STCLASS) == 0) {
/*
* For SMT or assymetric systems push a little
@@ -154,6 +155,7 @@
* find a better one to run this LWP.
*/
pri = MAXPRI_KTHREAD;
+ spc->spc_flags |= SPCF_SHOULDYIELD;
} else {
spc->spc_flags |= SPCF_SEENRR;
}
Home |
Main Index |
Thread Index |
Old Index