summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2016-04-12 13:30:39 +0000
committeravg <avg@FreeBSD.org>2016-04-12 13:30:39 +0000
commitf7d20d373434d068dcb6a6c509c1658cf683c026 (patch)
treead17502d1ace83c7947422a7127a812817e2b2a0 /sys/i386
parent3478256ec241901437844ce52380f29a9bed6beb (diff)
downloadFreeBSD-src-f7d20d373434d068dcb6a6c509c1658cf683c026.zip
FreeBSD-src-f7d20d373434d068dcb6a6c509c1658cf683c026.tar.gz
re-enable AMD Topology extension on certain models if disabled by BIOS
Some BIOSes disable AMD Topology extension on AMD Family 15h notebook processors. We re-enable the extension, so that we can properly discover core and cache topology. Linux seems to do the same. Reported by: Johannes Dieterich <dieterich.joh@gmail.com> Reviewed by: jhb, kib Tested by: Johannes Dieterich <dieterich.joh@gmail.com> (earlier version) MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D5883
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/mp_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c
index be00559..c2c200a 100644
--- a/sys/i386/i386/mp_machdep.c
+++ b/sys/i386/i386/mp_machdep.c
@@ -242,7 +242,7 @@ init_secondary(void)
pc->pc_prvspace = pc;
pc->pc_curthread = 0;
- intel_fix_cpuid();
+ fix_cpuid();
gdt_segs[GPRIV_SEL].ssd_base = (int) pc;
gdt_segs[GPROC0_SEL].ssd_base = (int) &pc->pc_common_tss;
OpenPOWER on IntegriCloud