Messages in this thread | | | From | (Matthias Urlichs) | Subject | Re: [patch] idle_task was wasting a lot of CPU | Date | 30 Nov 1998 22:25:55 +0100 |
| |
Rik van Riel <H.H.vanRiel@phys.uu.nl> 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... > Better.
-- Matthias Urlichs | noris network GmbH | smurf@noris.de | ICQ: 20193661
- 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/
| |