From: Dave Hansen <dave.han...@linux.intel.com>

The /sys/devices/system/cpu/cpu*/topology/core_siblings*
files were previously built from the "cpu_core_map".  That
mask is deeply connected to the sched domains internal
multi-core (MC) level, which is now become disconnected from
the actual CPU package.

We have a new "cpu_package_map" which has the sole purpose of
tracking which package the CPU is in and is unconnected to the
scheduler.  We will now build those sysfs with information from
the new package map.

Note: this also realigns the sysfs files with their documentation
in Documentation/ABI.

Signed-off-by: Dave Hansen <dave.han...@linux.intel.com>
---

 b/arch/x86/include/asm/topology.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN 
arch/x86/include/asm/topology.h~x86-use-package-map-instead-of-core-map 
arch/x86/include/asm/topology.h
--- a/arch/x86/include/asm/topology.h~x86-use-package-map-instead-of-core-map   
2014-09-17 15:28:57.508571881 -0700
+++ b/arch/x86/include/asm/topology.h   2014-09-17 15:28:57.511572017 -0700
@@ -124,7 +124,7 @@ extern const struct cpumask *cpu_package
 #define topology_core_id(cpu)                  (cpu_data(cpu).cpu_core_id)
 
 #ifdef ENABLE_TOPO_DEFINES
-#define topology_package_cpumask(cpu)          (per_cpu(cpu_core_map, cpu))
+#define topology_package_cpumask(cpu)          (per_cpu(cpu_package_map, cpu))
 #define topology_thread_cpumask(cpu)           (per_cpu(cpu_sibling_map, cpu))
 #endif
 
_
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to