Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f740e6c9c55cac6ab0a7d44a464b54467cca4f4f
Commit:     f740e6c9c55cac6ab0a7d44a464b54467cca4f4f
Parent:     17764d2437b0c4440e0718205f2c26dbaa72bc27
Author:     Kenji Kaneshige <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 22 19:53:30 2007 +0900
Committer:  Tony Luck <[EMAIL PROTECTED]>
CommitDate: Tue Aug 28 16:03:06 2007 -0700

    [IA64] Clear pending interrupts at CPU boot up time
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Tony Luck <[EMAIL PROTECTED]>
---
 arch/ia64/kernel/setup.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c
index 407efea..1f9b1d8 100644
--- a/arch/ia64/kernel/setup.c
+++ b/arch/ia64/kernel/setup.c
@@ -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
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to