https://github.com/torvalds/linux
Revision b05a720b374ac6af05b2fd4c70bb2c61a9f461ca authored by Greg Ungerer on 03 June 2005, 01:35:20 UTC, committed by Linus Torvalds on 03 June 2005, 15:16:17 UTC
Re-work the m68knommu specific idle code according to suggestions
from Nick Piggin <nickpiggin@yahoo.com.au>.

A couple of rules that we need to follow:

1. Preempt should now disabled over idle routines. Should only be enabled
to call schedule() then disabled again.

3. When cpu_idle finds (need_resched() == 'true'), it should call schedule().
It should not call schedule() otherwise.

Also fix interrupt locking around the need_resched() and cpu stop state
so that there is no race condition.

Signed-off-by: Greg Ungerer <gerg@snapgear.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent f4d340c
History
Tip revision: b05a720b374ac6af05b2fd4c70bb2c61a9f461ca authored by Greg Ungerer on 03 June 2005, 01:35:20 UTC
[PATCH] m68knommu: fix scheduling and race problems in idle loop
Tip revision: b05a720

README

back to top