diff options
author | Samuel Neves <sneves@dei.uc.pt> | 2018-02-21 23:50:36 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-02-23 10:47:47 +0300 |
commit | 4596749339e06dc7a424fc08a15eded850ed78b7 (patch) | |
tree | 2b440c0cf1c225bdd698433b1c8fa6f84f9ef582 /Documentation | |
parent | 0c52f7c5499dc708a64742da0cb7eb4f6d94588b (diff) | |
download | linux-4596749339e06dc7a424fc08a15eded850ed78b7.tar.xz |
x86/topology: Update the 'cpu cores' field in /proc/cpuinfo correctly across CPU hotplug operations
Without this fix, /proc/cpuinfo will display an incorrect amount
of CPU cores, after bringing them offline and online again, as
exemplified below:
$ cat /proc/cpuinfo | grep cores
cpu cores : 4
cpu cores : 8
cpu cores : 8
cpu cores : 20
cpu cores : 4
cpu cores : 3
cpu cores : 2
cpu cores : 2
This patch fixes this by always zeroing the booted_cores variable
upon turning off a logical CPU.
Tested-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: jgross@suse.com
Cc: luto@kernel.org
Cc: prarit@redhat.com
Cc: vkuznets@redhat.com
Link: http://lkml.kernel.org/r/20180221205036.5244-1-sneves@dei.uc.pt
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions