Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Oops. If a SCHED_RR thread is preempted and has exc...



details:   https://anonhg.NetBSD.org/src/rev/c648ba08e4f6
branches:  trunk
changeset: 933281:c648ba08e4f6
user:      ad <ad%NetBSD.org@localhost>
date:      Sat May 23 23:37:17 2020 +0000

description:
Oops.  If a SCHED_RR thread is preempted and has exceeded its timeslice it
needs to go to the back of the run queue so round-robin actually happens,
otherwise it should go to the front.

diffstat:

 sys/sys/sched.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r e8d534e47097 -r c648ba08e4f6 sys/sys/sched.h
--- a/sys/sys/sched.h   Sat May 23 22:16:17 2020 +0000
+++ b/sys/sys/sched.h   Sat May 23 23:37:17 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sched.h,v 1.89 2020/05/12 11:21:09 kamil Exp $ */
+/*     $NetBSD: sched.h,v 1.90 2020/05/23 23:37:17 ad Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2007, 2008, 2019, 2020
@@ -210,6 +210,7 @@
 #ifdef _KERNEL
 
 extern int schedhz;                    /* ideally: 16 */
+extern u_int sched_rrticks;
 
 struct proc;
 struct cpu_info;



Home | Main Index | Thread Index | Old Index