diff options
author | Yazen Ghannam <Yazen.Ghannam@amd.com> | 2017-02-05 13:50:22 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-02-05 14:18:45 +0300 |
commit | 08b259631b5a1d912af4832847b5642f377d9101 (patch) | |
tree | 3a77b453bac2a4e76f4e12d1c40d4c07f3f3258d /arch/x86/kernel/tsc.c | |
parent | 79a8b9aa388b0620cc1d525d7c0f0d9a8a85e08e (diff) | |
download | linux-08b259631b5a1d912af4832847b5642f377d9101.tar.xz |
x86/CPU/AMD: Fix Zen SMT topology
After:
a33d331761bc ("x86/CPU/AMD: Fix Bulldozer topology")
our SMT scheduling topology for Fam17h systems is broken, because
the ThreadId is included in the ApicId when SMT is enabled.
So, without further decoding cpu_core_id is unique for each thread
rather than the same for threads on the same core. This didn't affect
systems with SMT disabled. Make cpu_core_id be what it is defined to be.
Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@vger.kernel.org> # 4.9
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170205105022.8705-2-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/tsc.c')
0 files changed, 0 insertions, 0 deletions