Re: scheduling problem?

Andrea Arcangeli (andrea@suse.de)
Fri, 17 Dec 1999 15:07:57 +0100 (CET)


On Thu, 16 Dec 1999, Jamie Lokier wrote:

> asm volatile("sti ; hlt" : : : "memory");
^^^^^^^^^

The wakeup can still happen between sti and hlt so it doesn't fix the
irq race condition.

The trivial way to fix that is to loop on the need_resched in the idle
task (ugh, not nice :( ).

Andrea

-
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/