* [sched] [patch] comment-fixes-2.5.3-pre2-A0
@ 2002-01-20 13:13 Ingo Molnar
0 siblings, 0 replies; only message in thread
From: Ingo Molnar @ 2002-01-20 13:13 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 141 bytes --]
the attached patch from Rusty Russell fixes three comments in
kernel/sched.c. (I've updated it to apply cleanly against 2.5.3-pre2.)
Ingo
[-- Attachment #2: Type: TEXT/PLAIN, Size: 1249 bytes --]
--- linux/kernel/sched.c.orig Sun Jan 20 10:41:39 2002
+++ linux/kernel/sched.c Sun Jan 20 10:57:17 2002
@@ -37,11 +37,7 @@
*
* Locking rule: those places that want to lock multiple runqueues
* (such as the load balancing or the process migration code), lock
- * acquire operations must be ordered by the runqueue's cpu id.
- *
- * The RT event id is used to avoid calling into the the RT scheduler
- * if there is a RT task active in an SMP system but there is no
- * RT scheduling activity otherwise.
+ * acquire operations must be ordered by ascending &runqueue.
*/
struct runqueue {
spinlock_t lock;
@@ -538,7 +553,7 @@
* do not update a process's priority until it either
* goes to sleep or uses up its timeslice. This makes
* it possible for interactive tasks to use up their
- * timeslices at their high priority levels.
+ * timeslices at their highest priority levels.
*/
if (p->sleep_avg)
p->sleep_avg--;
@@ -853,7 +838,7 @@
if (array) {
enqueue_task(p, array);
/*
- * If the task is runnable and lowered its priority,
+ * If the task is running and lowered its priority,
* or increased its priority then reschedule its CPU:
*/
if ((nice < p->__nice) ||
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-01-20 11:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-20 13:13 [sched] [patch] comment-fixes-2.5.3-pre2-A0 Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®