mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
parisc: Check return value of smp_boot_one_cpu()
Check return value of smp_boot_one_cpu() whether CPU could be brought up. Reported-by: John David Anglin <[email protected]> Signed-off-by: Helge Deller <[email protected]>
This commit is contained in:
parent
b5d5cf2b8a
commit
5baf919dd7
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue