ff4b346ede
disk fails with UnboundLocalError: local variable 'dev_type' referenced before assignment 21678-xend-mac-fix.patch - bnc#586221 - cannot add DomU with USB host controller defined domu-usb-controller.patch (Chun Yan Liu) - Upstream patches from Jan 21151-trace-bounds-check.patch 21627-cpuidle-wrap.patch 21643-vmx-vpmu-pmc-offset.patch 21682-trace-buffer-range.patch 21683-vtd-kill-timer-conditional.patch 21693-memevent-64bit-only.patch 21695-trace-t_info-readonly.patch 21698-x86-pirq-range-check.patch 21699-p2m-query-for-type-change.patch 21700-32on64-vm86-gpf.patch 21705-trace-printk.patch 21706-trace-security.patch 21712-amd-osvw.patch 21744-x86-cpufreq-range-check.patch - bnc #599550 - Xen cannot distinguish the status of 'pause' addcommand_domstate.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=63
24 lines
788 B
Diff
24 lines
788 B
Diff
# HG changeset patch
|
|
# User Keir Fraser <keir.fraser@citrix.com>
|
|
# Date 1276761018 -3600
|
|
# Node ID 7a00c0bd4fc131fb4de5df9f3fdc4e48a29dd5f9
|
|
# Parent dab8676e97ce7a95c0777e58eee4b1b03bfc5322
|
|
cpuidle: fix wrapped ticks calculation for pm timer.
|
|
|
|
Signed-off-by: Wei Gang <gang.wei@intel.com>
|
|
|
|
--- a/xen/arch/x86/acpi/cpu_idle.c
|
|
+++ b/xen/arch/x86/acpi/cpu_idle.c
|
|
@@ -127,9 +127,9 @@ static inline u32 ticks_elapsed(u32 t1,
|
|
if ( t2 >= t1 )
|
|
return (t2 - t1);
|
|
else if ( !(acpi_gbl_FADT.flags & ACPI_FADT_32BIT_TIMER) )
|
|
- return (((0x00FFFFFF - t1) + t2) & 0x00FFFFFF);
|
|
+ return (((0x00FFFFFF - t1) + t2 + 1) & 0x00FFFFFF);
|
|
else
|
|
- return ((0xFFFFFFFF - t1) + t2);
|
|
+ return ((0xFFFFFFFF - t1) + t2 +1);
|
|
}
|
|
|
|
static void acpi_safe_halt(void)
|