ChangeSet 1.2229.1.8, 2005/04/04 07:36:01-07:00, [EMAIL PROTECTED]

        [PATCH] x86: fix subarch breakage in intel_cacheinfo.c
        
        Not all x86 subarchitectures have support for hyperthreading, so every
        piece you add for it has to be predicated on checks for CONFIG_X86_HT.
        
        The patch corrects this hyperthreading leakage problem in 
intel_cacheinfo.c
        
        Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 intel_cacheinfo.c |    2 ++
 1 files changed, 2 insertions(+)


diff -Nru a/arch/i386/kernel/cpu/intel_cacheinfo.c 
b/arch/i386/kernel/cpu/intel_cacheinfo.c
--- a/arch/i386/kernel/cpu/intel_cacheinfo.c    2005-04-04 08:14:50 -07:00
+++ b/arch/i386/kernel/cpu/intel_cacheinfo.c    2005-04-04 08:14:50 -07:00
@@ -311,8 +311,10 @@
 
        if (num_threads_sharing == 1)
                cpu_set(cpu, this_leaf->shared_cpu_map);
+#ifdef CONFIG_X86_HT
        else if (num_threads_sharing == smp_num_siblings)
                this_leaf->shared_cpu_map = cpu_sibling_map[cpu];
+#endif
        else
                printk(KERN_INFO "Number of CPUs sharing cache didn't match "
                                "any known set of CPUs\n");
-
To unsubscribe from this list: send the line "unsubscribe bk-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