summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/os/cpu.c')
-rw-r--r--usr/src/uts/common/os/cpu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/uts/common/os/cpu.c b/usr/src/uts/common/os/cpu.c
index 6ee6c941f7..d3d49aedf3 100644
--- a/usr/src/uts/common/os/cpu.c
+++ b/usr/src/uts/common/os/cpu.c
@@ -32,6 +32,7 @@
#include <sys/var.h>
#include <sys/thread.h>
#include <sys/cpuvar.h>
+#include <sys/cpu_event.h>
#include <sys/kstat.h>
#include <sys/uadmin.h>
#include <sys/systm.h>
@@ -143,7 +144,7 @@ cpu_t *cpu_inmotion;
/*
* Can be raised to suppress further weakbinding, which are instead
* satisfied by disabling preemption. Must be raised/lowered under cpu_lock,
- * while individual thread weakbinding synchronisation is done under thread
+ * while individual thread weakbinding synchronization is done under thread
* lock.
*/
int weakbindingbarrier;
@@ -2266,7 +2267,7 @@ cpu_info_kstat_update(kstat_t *ksp, int rw)
cpuid_get_ncore_per_chip(cp);
cpu_info_template.ci_pkg_core_id.value.l = cpuid_get_pkgcoreid(cp);
cpu_info_template.ci_max_cstates.value.l = cp->cpu_m.max_cstates;
- cpu_info_template.ci_curr_cstate.value.l = cp->cpu_m.curr_cstate;
+ cpu_info_template.ci_curr_cstate.value.l = cpu_idle_get_cpu_state(cp);
kstat_named_setstr(&cpu_info_template.ci_sktstr,
cpuid_getsocketstr(cp));
#endif