diff options
author | Randy Fishel <Randy.Fishel@Sun.COM> | 2009-05-15 14:57:54 -0700 |
---|---|---|
committer | Randy Fishel <Randy.Fishel@Sun.COM> | 2009-05-15 14:57:54 -0700 |
commit | fb2caebe9e38ee2e6e469d5136fb247faaa7299b (patch) | |
tree | e64801e10072265cd42fdb1dfaa92d67c442609b /usr/src/uts/common/os/cpu.c | |
parent | be9bec8bfc8d270cd5ad620fb84366f4071b0baa (diff) | |
download | illumos-gate-fb2caebe9e38ee2e6e469d5136fb247faaa7299b.tar.gz |
6836576 Integrate CPU Idle Notification into ON
PSARC/2009/115 CPU Idle Notification
Diffstat (limited to 'usr/src/uts/common/os/cpu.c')
-rw-r--r-- | usr/src/uts/common/os/cpu.c | 5 |
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 |