patch-2.4.0-test4 linux/kernel/timer.c

Next file: linux/mm/memory.c
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test3/linux/kernel/timer.c linux/kernel/timer.c
@@ -577,7 +577,7 @@
 			p->counter = 0;
 			p->need_resched = 1;
 		}
-		if (p->priority < DEF_PRIORITY)
+		if (p->nice > 0)
 			kstat.cpu_nice += user_tick;
 		else
 			kstat.cpu_user += user_tick;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)