]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sparc64: check for stopped cpu in smp_boot_one_cpu
authorDave Kleikamp <dave.kleikamp@oracle.com>
Wed, 21 May 2014 18:30:49 +0000 (13:30 -0500)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Mon, 18 Apr 2016 16:42:45 +0000 (11:42 -0500)
original patch by Bob Picco

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: Bob Picco <bob.picco@oracle.com>
arch/sparc/kernel/smp_64.c

index ca564f91c5e280c5d23996ae12b019490440fa3d..726bac931bec5f0f2cceec89feeb71003ce6a2c5 100644 (file)
@@ -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);