summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
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