Module Name: src
Committed By: ad
Date: Thu Mar 12 10:44:00 UTC 2020
Modified Files:
src/sys/kern: sched_4bsd.c
Log Message:
Put back missing set of SPCF_SHOULDYIELD.
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/kern/sched_4bsd.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/kern/sched_4bsd.c
diff -u src/sys/kern/sched_4bsd.c:1.42 src/sys/kern/sched_4bsd.c:1.43
--- src/sys/kern/sched_4bsd.c:1.42 Thu Jan 9 16:35:03 2020
+++ src/sys/kern/sched_4bsd.c Thu Mar 12 10:44:00 2020
@@ -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 @@ sched_tick(struct cpu_info *ci)
* 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 @@ sched_tick(struct cpu_info *ci)
* find a better one to run this LWP.
*/
pri = MAXPRI_KTHREAD;
+ spc->spc_flags |= SPCF_SHOULDYIELD;
} else {
spc->spc_flags |= SPCF_SEENRR;
}