diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2020-06-16 08:23:09 +0300 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-09-28 09:24:11 +0000 |
commit | 920d2b77f274ab511d22bb4a0ff6aa9e5b37b4c8 (patch) | |
tree | 8b0a507cbc2961f0fd63dfde6b6822f41a5607c9 /util/crossgcc/getopt.c | |
parent | 684739a476cd58569bc9c76e748ea4156177f701 (diff) |
cpu/intel/206ax/acpi.c: Fix get_cores_per_package
Current implementation uses CPUID 0Bh function that returns the number
of logical cores of requested level. The problem with this approach is
that this value doesn't change when HyperThreading is disabled (it's in
the Intel docs), so it breaks generate_cpu_entries().
- Use MSR 0x35 instead, which returns the correct number of logical
processors with and without HT.
- Rename the function to get_logical_cores_per_package, which is more
accurate.
Tested on ThinkPad X220 with and without HT.
Related to CB:29669.
Change-Id: Ib32c2d40408cfa42ca43ab42ed661c168e579ada
Signed-off-by: Evgeny Zinoviev <me@ch1p.io>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42413
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util/crossgcc/getopt.c')
0 files changed, 0 insertions, 0 deletions