Source-Changes-HG archive

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

[src/trunk]: src/sys/kern change sched_upreempt_pri default to 0 as discussed...



details:   https://anonhg.NetBSD.org/src/rev/7e9dc5f37edb
branches:  trunk
changeset: 777565:7e9dc5f37edb
user:      para <para%NetBSD.org@localhost>
date:      Thu Feb 23 12:24:05 2012 +0000

description:
change sched_upreempt_pri default to 0 as discussed on tech-kern@
should improve interactive performance on SMP machines
as user preemption happens immediately in x-cpu wakeup case now

diffstat:

 sys/kern/kern_runq.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4615dc4bb87f -r 7e9dc5f37edb sys/kern/kern_runq.c
--- a/sys/kern/kern_runq.c      Thu Feb 23 11:05:02 2012 +0000
+++ b/sys/kern/kern_runq.c      Thu Feb 23 12:24:05 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_runq.c,v 1.33 2011/12/02 12:31:03 yamt Exp $      */
+/*     $NetBSD: kern_runq.c,v 1.34 2012/02/23 12:24:05 para Exp $      */
 
 /*
  * Copyright (c) 2007, 2008 Mindaugas Rasiukevicius <rmind at NetBSD org>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.33 2011/12/02 12:31:03 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.34 2012/02/23 12:24:05 para Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -99,7 +99,7 @@
 /*
  * Preemption control.
  */
-int            sched_upreempt_pri = PRI_KERNEL;
+int            sched_upreempt_pri = 0;
 #ifdef __HAVE_PREEMPTION
 # ifdef DEBUG
 int            sched_kpreempt_pri = 0;



Home | Main Index | Thread Index | Old Index