diff options
author | Thomas Gleixner <[email protected]> | 2016-05-10 09:20:33 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2016-05-10 09:28:31 +0200 |
commit | 8d415ee225a3d15d3e3029524350e8237a4de7b8 (patch) | |
tree | 7352acadefca3b72f6f3d374f2d5436dd4468cb9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4abac0d0bbc628df5f26845fe05ffc6b3a6533dd (diff) |
x86/topology: Set x86_max_cores to 1 for CONFIG_SMP=n
Josef reported that the uncore driver trips over with CONFIG_SMP=n because
x86_max_cores is 16 instead of 12.
The reason is, that for SMP=n the extended topology detection is a NOOP and
the cache leaf is used to determine the number of cores. That's wrong in two
aspects:
1) The cache leaf enumerates the maximum addressable number of cores in the
package, which is obviously not correct
2) UP has no business with topology bits at all.
Make intel_num_cpu_cores() return 1 for CONFIG_SMP=n
Reported-by: Josef Bacik <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: kernel-team <[email protected]>
Cc: Kan Liang <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions