ACPI: C-States: accounting of sleep states
authorDominik Brodowski <linux@dominikbrodowski.net>
Sat, 24 Jun 2006 23:37:00 +0000 (19:37 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 28 Jun 2006 07:14:31 +0000 (03:14 -0400)
commita3c6598f92cf27d3d201a2a5b052563148156837
tree3fad66282da16a806139ce46bad2b85175fae43a
parent95b38b3f453c16de0f8cddcde3e71050bbfb37b9
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>
drivers/acpi/processor_idle.c
include/acpi/processor.h