diff options
Diffstat (limited to 'arch/powerpc/kernel/smp.c')
-rw-r--r-- | arch/powerpc/kernel/smp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index e36f94f7411a..3fe4de2b685e 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c | |||
@@ -495,6 +495,14 @@ int __devinit start_secondary(void *unused) | |||
495 | current->active_mm = &init_mm; | 495 | current->active_mm = &init_mm; |
496 | 496 | ||
497 | smp_store_cpu_info(cpu); | 497 | smp_store_cpu_info(cpu); |
498 | |||
499 | #if defined(CONFIG_BOOKE) || defined(CONFIG_40x) | ||
500 | /* Clear any pending timer interrupts */ | ||
501 | mtspr(SPRN_TSR, TSR_ENW | TSR_WIS | TSR_DIS | TSR_FIS); | ||
502 | |||
503 | /* Enable decrementer interrupt */ | ||
504 | mtspr(SPRN_TCR, TCR_DIE); | ||
505 | #endif | ||
498 | set_dec(tb_ticks_per_jiffy); | 506 | set_dec(tb_ticks_per_jiffy); |
499 | preempt_disable(); | 507 | preempt_disable(); |
500 | cpu_callin_map[cpu] = 1; | 508 | cpu_callin_map[cpu] = 1; |