Re: [Xen-devel] [V7] x86/cpuidle: get accurate C0 value with xenpm tool

2015-05-22 Thread Andrew Cooper
On 21/05/15 10:39, Huaitong Han wrote: When checking the ACPI funciton of C-status, after 100 seconds sleep, the sampling value of C0 status from the xenpm tool decreases. Because C0=NOW()-C1-C2-C3-C4, when NOW() value is during idle time, NOW() value is bigger than last C-status update time,

[Xen-devel] [V7] x86/cpuidle: get accurate C0 value with xenpm tool

2015-05-21 Thread Huaitong Han
When checking the ACPI funciton of C-status, after 100 seconds sleep, the sampling value of C0 status from the xenpm tool decreases. Because C0=NOW()-C1-C2-C3-C4, when NOW() value is during idle time, NOW() value is bigger than last C-status update time, and C0 value is also bigger than ture