]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/parisc/kernel/smp.c
Merge tag 'docs-4.9-2' of git://git.lwn.net/linux
[karo-tx-linux.git] / arch / parisc / kernel / smp.c
index c2a9cc55a62f63709e1d1e1b78d9a086ac3a2bf7..75dab2871346ce969d82a9fbb09ffcc0d579fc5c 100644 (file)
@@ -412,8 +412,8 @@ void smp_cpus_done(unsigned int cpu_max)
 
 int __cpu_up(unsigned int cpu, struct task_struct *tidle)
 {
-       if (cpu != 0 && cpu < parisc_max_cpus)
-               smp_boot_one_cpu(cpu, tidle);
+       if (cpu != 0 && cpu < parisc_max_cpus && smp_boot_one_cpu(cpu, tidle))
+               return -ENOSYS;
 
        return cpu_online(cpu) ? 0 : -ENOSYS;
 }