summaryrefslogtreecommitdiffstats
path: root/arch/ppc/kernel
diff options
context:
space:
mode:
authorAndrew Morton2005-11-10 00:45:30 +0100
committerLinus Torvalds2005-11-10 01:07:44 +0100
commite4d76e1c0b15590f2ad9bba89426c2520cd22ca6 (patch)
tree077aa0dd49bc49e93e18ec9645443b185d513094 /arch/ppc/kernel
parent[PATCH] optimize activate_task() (diff)
downloadkernel-qcow2-linux-e4d76e1c0b15590f2ad9bba89426c2520cd22ca6.tar.gz
kernel-qcow2-linux-e4d76e1c0b15590f2ad9bba89426c2520cd22ca6.tar.xz
kernel-qcow2-linux-e4d76e1c0b15590f2ad9bba89426c2520cd22ca6.zip
[PATCH] powerpc: sched fixups
- Re-add a hunk lost during merge: ppc64 is missing the hunk that disables preempt on the secondary CPUs before they call cpu_idle(). - ppc's cpu_idle() had the need_resched() test wrong. Cc: Nick Piggin <nickpiggin@yahoo.com.au> CC: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Anton Blanchard <anton@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc/kernel')
-rw-r--r--arch/ppc/kernel/idle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc/kernel/idle.c b/arch/ppc/kernel/idle.c
index 3c4e4cb61074..821a75e45602 100644
--- a/arch/ppc/kernel/idle.c
+++ b/arch/ppc/kernel/idle.c
@@ -63,7 +63,7 @@ void cpu_idle(void)
int cpu = smp_processor_id();
for (;;) {
- while (need_resched()) {
+ while (!need_resched()) {
if (ppc_md.idle != NULL)
ppc_md.idle();
else