From: Keir Fraser Date: Fri, 4 Jun 2010 09:06:23 +0000 (+0100) Subject: Add the USE_PLATFORM_TIMER flag to the FADT, to make w2k3 use the PMTIMER X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12027 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a6e99ed7e7b34ada2b35fc1626ab214b184dd98b;p=xen.git Add the USE_PLATFORM_TIMER flag to the FADT, to make w2k3 use the PMTIMER ...because the default timesource (TSC) drifts under load. The flag is only defined in ACPI 3.0, and we provide ACPI 2.0 tables, but Windows seems happy enough to obey it anyway. Signed-off-by: Tim Deegan --- diff --git a/tools/firmware/hvmloader/acpi/acpi2_0.h b/tools/firmware/hvmloader/acpi/acpi2_0.h index c574f894f5..9ea356b062 100644 --- a/tools/firmware/hvmloader/acpi/acpi2_0.h +++ b/tools/firmware/hvmloader/acpi/acpi2_0.h @@ -255,6 +255,7 @@ struct acpi_20_fadt { #define ACPI_SEALED_CASE (1 << 11) #define ACPI_HEADLESS (1 << 12) #define ACPI_CPU_SW_SLP (1 << 13) +#define ACPI_USE_PLATFORM_CLOCK (1 << 15) /* * Firmware ACPI Control Structure (FACS). diff --git a/tools/firmware/hvmloader/acpi/static_tables.c b/tools/firmware/hvmloader/acpi/static_tables.c index c7faee8635..c2635617cf 100644 --- a/tools/firmware/hvmloader/acpi/static_tables.c +++ b/tools/firmware/hvmloader/acpi/static_tables.c @@ -70,7 +70,8 @@ struct acpi_20_fadt Fadt = { .iapc_boot_arch = ACPI_8042, .flags = (ACPI_PROC_C1 | ACPI_WBINVD | - ACPI_FIX_RTC | ACPI_TMR_VAL_EXT), + ACPI_FIX_RTC | ACPI_TMR_VAL_EXT | + ACPI_USE_PLATFORM_CLOCK), .reset_reg = { .address_space_id = ACPI_SYSTEM_IO,