]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/platforms/pseries/smp.c
powerpc/pseries: Only call start-cpu when a CPU is stopped
[karo-tx-linux.git] / arch / powerpc / platforms / pseries / smp.c
index 20b694280a665ea59e98db48b51753b676c22866..8979982eb2eeab34e332432b7a75d9bb057d31e7 100644 (file)
@@ -104,6 +104,12 @@ static inline int __devinit smp_startup_cpu(unsigned int lcpu)
 
        pcpu = get_hard_smp_processor_id(lcpu);
 
+       /* Check to see if the CPU out of FW already for kexec */
+       if (smp_query_cpu_stopped(pcpu) == QCSS_NOT_STOPPED){
+               cpu_set(lcpu, of_spin_map);
+               return 1;
+       }
+
        /* Fixup atomic count: it exited inside IRQ handler. */
        task_thread_info(paca[lcpu].__current)->preempt_count   = 0;