summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-03-18 17:20:30 +0100
committerThomas Gleixner <tglx@linutronix.de>2016-03-19 10:26:40 +0100
commit3e8db2246b434c6b18a6a9f09904038bddcf76c7 (patch)
tree1366cdf25c51ef7c276872152a5077a982ccbf72 /block
parent63d1e995be455ae9196270eb4b789de21afd42ed (diff)
downloadop-kernel-dev-3e8db2246b434c6b18a6a9f09904038bddcf76c7.zip
op-kernel-dev-3e8db2246b434c6b18a6a9f09904038bddcf76c7.tar.gz
x86/topology: Use total_cpus not nr_cpu_ids for logical packages
nr_cpu_ids can be limited on the command line via nr_cpus=. That can break the logical package management because it results in a smaller number of packages, but the cpus to online are occupying the full package space as the hyper threads are enumerated after the physical cores typically. total_cpus is the real possible cpu space not limited by nr_cpus command line and gives us the proper number of packages. Reported-by: Mike Galbraith <umgwanakikbuti@gmail.com> Fixes: 1f12e32f4cd5 ("x86/topology: Create logical package id") Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Xiong Zhou <jencce.kernel@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Andreas Herrmann <aherrmann@suse.com> Link: http://lkml.kernel.org/r/alpine.DEB.2.11.1603181254330.3978@nanos
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud