Skip to content

Commit

Permalink
x86/CPU/AMD: Do not check CPUID max ext level before parsing SMP info
Browse files Browse the repository at this point in the history
Old code used to check whether CPUID ext max level is >= 0x80000008 because
that last leaf contains the number of cores of the physical CPU.  The three
functions called there now do not depend on that leaf anymore so the check
can go.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
suryasaimadhu authored and KAGA-KOKO committed Jun 21, 2018
1 parent 1910ad5 commit 119bff8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions arch/x86/kernel/cpu/amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,12 +848,9 @@ static void init_amd(struct cpuinfo_x86 *c)

cpu_detect_cache_sizes(c);

/* Multi core CPU? */
if (c->extended_cpuid_level >= 0x80000008) {
amd_detect_cmp(c);
amd_get_topology(c);
srat_detect_node(c);
}
amd_detect_cmp(c);
amd_get_topology(c);
srat_detect_node(c);

init_amd_cacheinfo(c);

Expand Down

0 comments on commit 119bff8

Please sign in to comment.