[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Remove dead code in acpi sleep.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1189428199 -3600 # Node ID 005cd2cba06929ec292b1d923e5b31624bd69729 # Parent 1a8f8f96e0cd31bdc0ac4f6884c0df0d115dfd7c Remove dead code in acpi sleep. Signed-off-by Kevin Tian <kevin.tian@xxxxxxxxx> --- xen/arch/x86/acpi/power.c | 15 --------------- 1 files changed, 15 deletions(-) diff -r 1a8f8f96e0cd -r 005cd2cba069 xen/arch/x86/acpi/power.c --- a/xen/arch/x86/acpi/power.c Sat Sep 08 10:06:15 2007 +0100 +++ b/xen/arch/x86/acpi/power.c Mon Sep 10 13:43:19 2007 +0100 @@ -181,11 +181,6 @@ static long enter_state_helper(void *dat /* * Dom0 issues this hypercall in place of writing pm1a_cnt. Xen then * takes over the control and put the system into sleep state really. - * - * Guest may issue a two-phases write to PM1x_CNT, to work - * around poorly implemented hardware. It's better to keep - * this logic here. Two writes can be differentiated by - * enable bit setting. */ int acpi_enter_sleep(struct xenpf_enter_acpi_sleep *sleep) { @@ -204,16 +199,6 @@ int acpi_enter_sleep(struct xenpf_enter_ if ( sleep->flags ) return -EINVAL; - /* Write #1 */ - if ( !(sleep->pm1a_cnt_val & ACPI_BITMASK_SLEEP_ENABLE) ) - { - outw((u16)sleep->pm1a_cnt_val, acpi_sinfo.pm1a_cnt); - if ( acpi_sinfo.pm1b_cnt ) - outw((u16)sleep->pm1b_cnt_val, acpi_sinfo.pm1b_cnt); - return 0; - } - - /* Write #2 */ acpi_sinfo.pm1a_cnt_val = sleep->pm1a_cnt_val; acpi_sinfo.pm1b_cnt_val = sleep->pm1b_cnt_val; acpi_sinfo.sleep_state = sleep->sleep_state; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |