diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-11-09 09:50:27 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-11-09 17:07:11 +0100 |
commit | ca4b2df651a098a716e8cd8ebba79ba329e3dcc3 (patch) | |
tree | 0aa7f067fef0e7de075e7bd9dce2e81795e93e44 /arch/x86/kernel/cpu/amd.c | |
parent | 59c6f278bdeea4147e8be92a3ed50a9907e60088 (diff) | |
parent | b0b6e86846093c5f8820386bc01515f857dd8faa (diff) |
Merge branch 'x86/urgent' into x86/cpu, to pick up dependent fix
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/cpu/amd.c')
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index b81fe2d63e15..1e81a37c034e 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -347,7 +347,6 @@ static void amd_detect_cmp(struct cpuinfo_x86 *c) #ifdef CONFIG_SMP unsigned bits; int cpu = smp_processor_id(); - unsigned int socket_id, core_complex_id; bits = c->x86_coreid_bits; /* Low order bits define the core id (index of core in socket) */ @@ -365,10 +364,7 @@ static void amd_detect_cmp(struct cpuinfo_x86 *c) if (c->x86 != 0x17 || !cpuid_edx(0x80000006)) return; - socket_id = (c->apicid >> bits) - 1; - core_complex_id = (c->apicid & ((1 << bits) - 1)) >> 3; - - per_cpu(cpu_llc_id, cpu) = (socket_id << 3) | core_complex_id; + per_cpu(cpu_llc_id, cpu) = c->apicid >> 3; #endif } |