]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: smpboot - check if we have ESR register in wakeup_secondary_cpu
authorCyrill Gorcunov <gorcunov@gmail.com>
Sun, 14 Sep 2008 17:58:49 +0000 (21:58 +0400)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Oct 2008 08:21:14 +0000 (10:21 +0200)
We should check if we have ESR register before reading from it.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: "Maciej W. Rozycki" <macro@linux-mips.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/smpboot.c

index b700c9a106442f72fe408f8423b7c1eb477b9c08..a778e221ccfb13d9d9f7e9a76ffc42613dcb57e2 100644 (file)
@@ -599,10 +599,12 @@ wakeup_secondary_cpu(int logical_apicid, unsigned long start_eip)
         * Give the other CPU some time to accept the IPI.
         */
        udelay(200);
-       maxlvt = lapic_get_maxlvt();
-       if (maxlvt > 3)                 /* Due to the Pentium erratum 3AP.  */
-               apic_write(APIC_ESR, 0);
-       accept_status = (apic_read(APIC_ESR) & 0xEF);
+       if (APIC_INTEGRATED(apic_version[phys_apicid])) {
+               maxlvt = lapic_get_maxlvt();
+               if (maxlvt > 3)                 /* Due to the Pentium erratum 3AP.  */
+                       apic_write(APIC_ESR, 0);
+               accept_status = (apic_read(APIC_ESR) & 0xEF);
+       }
        pr_debug("NMI sent.\n");
 
        if (send_status)