lkml.org 
[lkml]   [1998]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [patch] idle_task was wasting a lot of CPU

On Fri, 27 Nov 1998, Linus Torvalds wrote:

> Hmm.. The idle tasks _should_ have a negative counter value all the time,
> at least they used to. That's the proper fix, to make sure that the
> counter value is never positive in the first place.
>
> I wonder when that broke?

oops, i think those came in by accident with the SMP idle-reschedule stuff
in 2.1.111.

on the bright side, 2.1.131 should be a killer ;)

this is the 2.1.111 breakage:

--- v2.1.110/linux/arch/i386/kernel/process.c Tue Jul 21 00:15:30 1998
+++ linux/arch/i386/kernel/process.c Wed Jul 22 14:45:23 1998
@@ -115,8 +115,8 @@
if (current->pid != 0)
goto out;
/* endless idle loop with no priority at all */
- current->priority = -100;
- current->counter = -100;
+ current->priority = 0;
+ current->counter = 0;
for (;;) {
[...etc...]

-- mingo

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.332 / U:0.316 seconds]
©2003-2011 Jasper Spaans. Advertise on this site