summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorrv207048 <none@none>2008-07-02 08:54:52 -0700
committerrv207048 <none@none>2008-07-02 08:54:52 -0700
commit5987056561a7f4dcea82d9c16a63f53df4007d1d (patch)
tree10bcfabbc971457e3c50c2a74f5a3f2433b4944a /usr/src
parent08cfff842ea0f7a3b6e18fddd6a19248eb36b9b5 (diff)
downloadillumos-joyent-5987056561a7f4dcea82d9c16a63f53df4007d1d.tar.gz
6716290 add static DTrace probe for CPU state transitions into i86xpv
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/i86pc/os/mp_machdep.c4
-rw-r--r--usr/src/uts/i86pc/os/mp_pc.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/uts/i86pc/os/mp_machdep.c b/usr/src/uts/i86pc/os/mp_machdep.c
index 25d145a445..53e86c44bf 100644
--- a/usr/src/uts/i86pc/os/mp_machdep.c
+++ b/usr/src/uts/i86pc/os/mp_machdep.c
@@ -415,8 +415,12 @@ cpu_idle(void)
return;
}
+ DTRACE_PROBE1(idle__state__transition, uint_t, IDLE_STATE_C1);
+
mach_cpu_idle();
+ DTRACE_PROBE1(idle__state__transition, uint_t, IDLE_STATE_C0);
+
/*
* We're no longer halted
*/
diff --git a/usr/src/uts/i86pc/os/mp_pc.c b/usr/src/uts/i86pc/os/mp_pc.c
index 2e1be6f5c3..ff880fa515 100644
--- a/usr/src/uts/i86pc/os/mp_pc.c
+++ b/usr/src/uts/i86pc/os/mp_pc.c
@@ -43,7 +43,6 @@
#include <sys/mach_mmu.h>
#include <sys/promif.h>
#include <sys/cpu.h>
-#include <sys/sdt.h>
#include <vm/hat_i86.h>
extern void real_mode_start(void);
@@ -258,13 +257,9 @@ mach_cpu_halt(char *msg)
void
mach_cpu_idle(void)
{
- DTRACE_PROBE1(idle__state__transition, uint_t, IDLE_STATE_C1);
-
tlb_going_idle();
i86_halt();
tlb_service();
-
- DTRACE_PROBE1(idle__state__transition, uint_t, IDLE_STATE_C0);
}
void