]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: fix an issue when trying to bring hotplug cpus online
authorDave Aldridge <david.j.aldridge@oracle.com>
Fri, 24 Mar 2017 12:01:00 +0000 (06:01 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 24 Apr 2017 04:43:25 +0000 (21:43 -0700)
commit495cd696b0448d20336701a4233c2021003f3930
tree9a35e3f6ce61885e60f4f7cf23b2ff53d7ff6a9b
parent8cecaafad6fab2bdbb6f1c4df42135e86bf67111
sparc64: fix an issue when trying to bring hotplug cpus online

When booting the kernel with maxcpus= on the command line
and then subsequently trying to bring cpus online using:

echo 1 > /sys/devices/system/cpu/cpu[n]/online

messages of the form:

ldom_startcpu_cpuid: sun4v_cpu_start() gives error 6
Processor[n] is stuck

were being reported on the console.

This commit fixes this issue by ensuring that any cpus not
booted during initial kernel boot are explicitly stopped.
This then allows them to be successfully brought online later
if required.

Orabug: 25667277

Signed-off-by: Dave Aldridge <david.j.aldridge@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Reviewed-by: Allen Pais <allen.pais@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/kernel/smp_64.c