patch-2.3.10 linux/kernel/sched.c
Next file: linux/kernel/signal.c
Previous file: linux/kernel/ptrace.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Jul 1 15:09:01 1999
- Orig file:
v2.3.9/linux/kernel/sched.c
- Orig date:
Wed May 12 14:41:36 1999
diff -u --recursive --new-file v2.3.9/linux/kernel/sched.c linux/kernel/sched.c
@@ -1465,7 +1465,7 @@
unsigned long user = ticks - system;
if (p->pid) {
p->counter -= ticks;
- if (p->counter < 0) {
+ if (p->counter <= 0) {
p->counter = 0;
p->need_resched = 1;
}
@@ -1668,7 +1668,7 @@
* do a "normalization" of the priority (traditionally
* Unix nice values are -20 to 20; Linux doesn't really
* use that kind of thing, but uses the length of the
- * timeslice instead (default 210 ms). The rounding is
+ * timeslice instead (default 200 ms). The rounding is
* why we want to avoid negative values.
*/
newprio = (newprio * DEF_PRIORITY + 10) / 20;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)