Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c1e3619edd2b3e17450d745e27e335490cafd78d
Commit:     c1e3619edd2b3e17450d745e27e335490cafd78d
Parent:     c789c037e9d0d93d6081e796ab70b488b2ff69f2
Author:     Thomas Gleixner <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 17 18:04:40 2007 +0200
Committer:  Thomas Gleixner <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 20:16:50 2007 +0200

    x86: print info about late C1E detection on 32bit as well
    
    Some BIOSes set the C1E flag only on the second core. Print a warning so
    the Firmware Toolkit can check for it.
    
    mingo: fix C1E build bug on 32-bit
    
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 arch/x86/kernel/cpu/amd.c |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index dcf6bbb..5f8af87 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -4,6 +4,7 @@
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <asm/apic.h>
+#include <asm/mach_apic.h>
 
 #include "cpu.h"
 
@@ -45,13 +46,17 @@ static __cpuinit int amd_apic_timer_broken(void)
        case CPUID_XFAM_10H:
        case CPUID_XFAM_11H:
                rdmsr(MSR_K8_ENABLE_C1E, lo, hi);
-               if (lo & ENABLE_C1E_MASK)
+               if (lo & ENABLE_C1E_MASK) {
+                       if (smp_processor_id() != boot_cpu_physical_apicid)
+                               printk(KERN_INFO "AMD C1E detected late. "
+                                      "        Force timer broadcast.\n");
                        return 1;
-                break;
-        default:
-                /* err on the side of caution */
+               }
+               break;
+       default:
+               /* err on the side of caution */
                return 1;
-        }
+       }
        return 0;
 }
 #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