summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel/ia32/os/cpc_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/intel/ia32/os/cpc_subr.c')
-rw-r--r--usr/src/uts/intel/ia32/os/cpc_subr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/uts/intel/ia32/os/cpc_subr.c b/usr/src/uts/intel/ia32/os/cpc_subr.c
index b15c57a8e5..f7b86fd602 100644
--- a/usr/src/uts/intel/ia32/os/cpc_subr.c
+++ b/usr/src/uts/intel/ia32/os/cpc_subr.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2019 Joyent, Inc.
*/
/*
@@ -139,6 +140,12 @@ kcpc_hw_init(cpu_t *cp)
strands_perfmon_shared = 1;
}
}
+ } else if (cpuid_getvendor(cpu[0]) == X86_VENDOR_AMD) {
+ /*
+ * On AMD systems with HT, all of the performance
+ * monitors exist on a per-logical CPU basis.
+ */
+ strands_perfmon_shared = 0;
} else {
strands_perfmon_shared = 1;
}