[patch] tweak schedule_timeout in __cpu_die

Nathan Lynch nathanl at austin.ibm.com
Wed Aug 18 05:54:09 EST 2004


On Tue, 2004-08-17 at 14:02, Joel Schopp wrote:
> Wonder what would happen if we did away with the schedule_timeout all
> together and just did a tight loop, every so often checking the time?

Gross.  It's usually bad manners to have a task busy-loop when you can
just put it to sleep and wake it up a short time later without penalty.
There's no need to tie up the cpu in this case.

Nathan


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list