]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[IA64] Clear pending interrupts at CPU boot up time
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Wed, 22 Aug 2007 10:53:30 +0000 (19:53 +0900)
committerTony Luck <tony.luck@intel.com>
Tue, 28 Aug 2007 23:03:06 +0000 (16:03 -0700)
The pending interrupts can be remaining at boot up time on some
platform. This will cause spurious interrupts when interrupt is
enabled for the first time. This patch clears IVR at the CPU
initialization to eliminate such spurious interrupts.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
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