]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IA64] Fix unlock ordering in smp_callin
authorAlan D. Brunelle <Alan.Brunelle@hp.com>
Thu, 3 Apr 2008 18:30:36 +0000 (14:30 -0400)
committerTony Luck <tony.luck@intel.com>
Wed, 9 Apr 2008 17:13:13 +0000 (10:13 -0700)
One should normally unlock in the reverse order of the lock calls,
and in this case there certainly is no reason not to.

Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/smpboot.c

index 32ee5979a042c35e120ea1bc9fa0acd49bb411c8..16483be18c0b8c6c33834fdb5e87ffe1da52bf70 100644 (file)
@@ -400,9 +400,9 @@ smp_callin (void)
        /* Setup the per cpu irq handling data structures */
        __setup_vector_irq(cpuid);
        cpu_set(cpuid, cpu_online_map);
-       unlock_ipi_calllock();
        per_cpu(cpu_state, cpuid) = CPU_ONLINE;
        spin_unlock(&vector_lock);
+       unlock_ipi_calllock();
 
        smp_setup_percpu_timer();