]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
cpuidle: Fix possible false judge caused by type casting
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 14 May 2009 14:46:43 +0000 (15:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 14 May 2009 14:46:43 +0000 (15:46 +0100)
commit520302d743e55423d60ff1fdd5b0decf05105973
tree4c569ebc6608ffd11adcdb255f4416814ace7421
parentcda3e8c2a8e98f1883a49ccdd05357797b7e9e89
cpuidle: Fix possible false judge caused by type casting

For timer_deadline == 0 or timer_deadline - now > largest u32
case, the expected_us (in u32 type) may become wrong.

Add a tunable option to ease conditional adjustment.

Signed-off-by: Wei Gang <gang.wei@intel.com>
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/acpi/cpuidle_menu.c