x86/cpuidle: get accurate C0 value with xenpm tool
authorHuaitong Han <huaitong.han@intel.com>
Fri, 22 May 2015 08:12:02 +0000 (10:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 22 May 2015 08:12:02 +0000 (10:12 +0200)
commitfbeef5570cdf024c35bb04b9469101c256093780
tree2a3427d77b76dcdb0d13c3f6a3c80c72d313e6b5
parent8529d6a48158034e54d3a1be37bc87c01bf40232
x86/cpuidle: get accurate C0 value with xenpm tool

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 value. if margin of the second error cannot
make up for margin of the first error, the value of C0 would decrease.

Signed-off-by: Huaitong Han <huaitong.han@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/cpu/mwait-idle.c
xen/include/asm-x86/cpuidle.h
xen/include/xen/cpuidle.h