Messages in this thread Patch in this message | | | Date | Fri, 27 Nov 1998 20:36:43 +0100 (CET) | From | MOLNAR Ingo <> | Subject | Re: [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/
| |