[lkml]   [1998]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch] idle_task was wasting a lot of CPU
  Rik van Riel <> writes:
> if (current == idle_task || p->counter >= current->counter ||
> p->policy != SCHED_OTHER)
That doesn't work too well with SMP.

> occurring situations placed first. An alternative is
> to have the idle task mark itself with SCHED_YIELD so
> the != SCHED_OTHER test will pass. Since the idle task
> is never subjected to goodness() the SCHED_YIELD will
> never be cleared and we can keep on using the trick...

Matthias Urlichs | noris network GmbH | | ICQ: 20193661

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:45    [W:0.086 / U:0.288 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site