Module Name:    src
Committed By:   matt
Date:           Sun Oct  7 20:43:18 UTC 2012

Modified Files:
        src/sys/sys: lwp.h

Log Message:
Don't give a boost to system threads.


To generate a diff of this commit:
cvs rdiff -u -r1.164 -r1.165 src/sys/sys/lwp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/lwp.h
diff -u src/sys/sys/lwp.h:1.164 src/sys/sys/lwp.h:1.165
--- src/sys/sys/lwp.h:1.164	Thu Sep 27 20:43:15 2012
+++ src/sys/sys/lwp.h	Sun Oct  7 20:43:18 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: lwp.h,v 1.164 2012/09/27 20:43:15 rmind Exp $	*/
+/*	$NetBSD: lwp.h,v 1.165 2012/10/07 20:43:18 matt Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2006, 2007, 2008, 2009, 2010
@@ -411,7 +411,7 @@ lwp_eprio(lwp_t *l)
 	pri_t pri;
 
 	pri = l->l_priority;
-	if (l->l_kpriority && pri < PRI_KERNEL)
+	if ((l->l_flag & LW_SYSTEM) == 0 && l->l_kpriority && pri < PRI_KERNEL)
 		pri = (pri >> 1) + l->l_kpribase;
 	return MAX(l->l_inheritedprio, pri);
 }

Reply via email to