CPU topology makes almost no sense for Xen, and populates it with B/S values

This commit is contained in:
ad 2020-04-03 22:45:30 +00:00
parent 084208a910
commit c29d31acde
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: identcpu.c,v 1.100 2019/12/21 12:53:54 ad Exp $ */
/* $NetBSD: identcpu.c,v 1.101 2020/04/03 22:45:30 ad Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.100 2019/12/21 12:53:54 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.101 2020/04/03 22:45:30 ad Exp $");
#include "opt_xen.h"
@ -950,7 +950,9 @@ cpu_probe(struct cpu_info *ci)
cpu_probe_fpu(ci);
}
#ifndef XEN
x86_cpu_topology(ci);
#endif
if (cpu_vendor != CPUVENDOR_AMD && (ci->ci_feat_val[0] & CPUID_TM) &&
(rdmsr(MSR_MISC_ENABLE) & (1 << 3)) == 0) {

View File

@ -1,4 +1,4 @@
# $NetBSD: files.xen,v 1.179 2019/09/07 18:56:01 maxv Exp $
# $NetBSD: files.xen,v 1.180 2020/04/03 22:45:30 ad Exp $
# NetBSD: files.x86,v 1.10 2003/10/08 17:30:00 bouyer Exp
# NetBSD: files.i386,v 1.254 2004/03/25 23:32:10 jmc Exp
@ -157,7 +157,6 @@ file arch/x86/x86/tsc.c machdep
file arch/x86/x86/vm_machdep.c machdep
file arch/x86/x86/x86_autoconf.c machdep & xenpvhvm
file arch/x86/x86/x86_machdep.c machdep
file arch/x86/x86/cpu_topology.c machdep
file arch/x86/x86/platform.c machdep
include "arch/xen/conf/files.compat"