diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/smp.c | 1 | ||||
-rw-r--r-- | arch/ppc/kernel/idle.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 2ffdc863bff3..e28a139c29d0 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c | |||
@@ -517,6 +517,7 @@ int __devinit start_secondary(void *unused) | |||
517 | 517 | ||
518 | smp_store_cpu_info(cpu); | 518 | smp_store_cpu_info(cpu); |
519 | set_dec(tb_ticks_per_jiffy); | 519 | set_dec(tb_ticks_per_jiffy); |
520 | preempt_disable(); | ||
520 | cpu_callin_map[cpu] = 1; | 521 | cpu_callin_map[cpu] = 1; |
521 | 522 | ||
522 | smp_ops->setup_cpu(cpu); | 523 | smp_ops->setup_cpu(cpu); |
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) | |||
63 | int cpu = smp_processor_id(); | 63 | int cpu = smp_processor_id(); |
64 | 64 | ||
65 | for (;;) { | 65 | for (;;) { |
66 | while (need_resched()) { | 66 | while (!need_resched()) { |
67 | if (ppc_md.idle != NULL) | 67 | if (ppc_md.idle != NULL) |
68 | ppc_md.idle(); | 68 | ppc_md.idle(); |
69 | else | 69 | else |