]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/ia64/kernel/setup.c
[IA64] Clear pending interrupts at CPU boot up time
[linux-2.6-omap-h63xx.git] / arch / ia64 / kernel / setup.c
index 407efea04bf5d9b761daea91281b8dff2479b312..1f9b1d818dcd26e5ae429e611baeef281f200111 100644 (file)
@@ -960,6 +960,11 @@ cpu_init (void)
 
        /* clear TPR & XTP to enable all interrupt classes: */
        ia64_setreg(_IA64_REG_CR_TPR, 0);
+
+       /* Clear any pending interrupts left by SAL/EFI */
+       while (ia64_get_ivr() != IA64_SPURIOUS_INT_VECTOR)
+               ia64_eoi();
+
 #ifdef CONFIG_SMP
        normal_xtp();
 #endif