lkml.org 
[lkml]   [2005]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] fix subarch breakage in intel_cacheinfo.c
From
Date
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 <James.Bottomley@SteelEye.com>

===== arch/i386/kernel/cpu/intel_cacheinfo.c 1.3 vs edited =====
--- 1.3/arch/i386/kernel/cpu/intel_cacheinfo.c 2005-03-31 05:06:44 -06:00
+++ edited/arch/i386/kernel/cpu/intel_cacheinfo.c 2005-04-02 12:03:39 -06: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 linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-04-06 13:31    [W:2.431 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site