diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-06-25 03:37:00 +0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-06-28 11:14:31 +0400 |
commit | a3c6598f92cf27d3d201a2a5b052563148156837 (patch) | |
tree | 3fad66282da16a806139ce46bad2b85175fae43a /include/acpi/processor.h | |
parent | 95b38b3f453c16de0f8cddcde3e71050bbfb37b9 (diff) | |
download | linux-a3c6598f92cf27d3d201a2a5b052563148156837.tar.xz |
ACPI: C-States: accounting of sleep states
Track the actual time spent in C-States (C2 upwards, we can't determine this
for C1), not only the number of invocations. This is especially useful for
dynamic ticks / "tickless systems", but is also of interest on normal systems,
as any interrupt activity leads to C-States being exited, not only the timer
interrupt.
The time is being measured in PM timer ticks, so an increase by one equals 279
nanoseconds.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/processor.h')
-rw-r--r-- | include/acpi/processor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 77371b3cdc44..9dd5b75961f8 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -62,6 +62,7 @@ struct acpi_processor_cx { u32 latency_ticks; u32 power; u32 usage; + u64 time; struct acpi_processor_cx_policy promotion; struct acpi_processor_cx_policy demotion; }; |