From 2d810483ac9e0565487dd31e88b7ee70acf8ad2f Mon Sep 17 00:00:00 2001 From: Dave Kleikamp Date: Wed, 21 May 2014 13:30:49 -0500 Subject: [PATCH] sparc64: check for stopped cpu in smp_boot_one_cpu original patch by Bob Picco Signed-off-by: Dave Kleikamp Cc: Bob Picco --- arch/sparc/kernel/smp_64.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c index ca564f91c5e2..726bac931bec 100644 --- a/arch/sparc/kernel/smp_64.c +++ b/arch/sparc/kernel/smp_64.c @@ -355,7 +355,9 @@ static int smp_boot_one_cpu(unsigned int cpu, struct task_struct *idle) if (tlb_type == hypervisor) { #if defined(CONFIG_SUN_LDOMS) && defined(CONFIG_HOTPLUG_CPU) - if (ldom_domaining_enabled) + unsigned long hverror = sun4v_cpu_state(cpu); + + if (ldom_domaining_enabled || (hverror == HV_CPU_STATE_STOPPED)) ldom_startcpu_cpuid(cpu, (unsigned long) cpu_new_thread, &descr); -- 2.50.1