diff options
author | esaxe <none@none> | 2008-01-18 15:00:55 -0800 |
---|---|---|
committer | esaxe <none@none> | 2008-01-18 15:00:55 -0800 |
commit | c210ded489f4b4bd3e26ba118f5603c41a5c8c02 (patch) | |
tree | 83af1b195cf03c6cd3b3e466dea7a232ddc45301 /usr/src/uts/intel/sys/cpu.h | |
parent | fdb7141f0274bca1975db87dfb070b4e3c89b6f5 (diff) | |
download | illumos-joyent-c210ded489f4b4bd3e26ba118f5603c41a5c8c02.tar.gz |
6635705 static DTrace probe points for CPU power management state transitions
6643464 need static DTrace probe for cyclic tracing, firing events
Diffstat (limited to 'usr/src/uts/intel/sys/cpu.h')
-rw-r--r-- | usr/src/uts/intel/sys/cpu.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr/src/uts/intel/sys/cpu.h b/usr/src/uts/intel/sys/cpu.h index 9a4217d1ee..26fc7bd21b 100644 --- a/usr/src/uts/intel/sys/cpu.h +++ b/usr/src/uts/intel/sys/cpu.h @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -79,6 +79,18 @@ extern int xpv_panicking; #define SMT_PAUSE() ht_pause() #endif +/* + * + * C-state defines for the idle_state_transition DTrace probe + * + * The probe fires when the CPU undergoes an idle state change (e.g. C-state) + * The agument passed is the C-state to which the CPU is transitioning. + * + * The states are defined here. + */ +#define IDLE_STATE_C0 0 +#define IDLE_STATE_C1 1 + #endif /* _KERNEL */ #ifdef __cplusplus |