diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-10 13:43:19 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-10 13:43:19 +0100 |
commit | 562f0fc31ac32ffad66fa819fe03f3b25c42f0e7 (patch) | |
tree | 07ec81aa8a736607aa6d2cd4f54cab37b0a8a055 | |
parent | 41e851f6adf4af476987f62926aafb7980bdac39 (diff) | |
download | xen-562f0fc31ac32ffad66fa819fe03f3b25c42f0e7.tar.gz xen-562f0fc31ac32ffad66fa819fe03f3b25c42f0e7.tar.bz2 xen-562f0fc31ac32ffad66fa819fe03f3b25c42f0e7.zip |
Remove dead code in acpi sleep.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
-rw-r--r-- | xen/arch/x86/acpi/power.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/xen/arch/x86/acpi/power.c b/xen/arch/x86/acpi/power.c index 9d8cbd1e67..ae4d2149cf 100644 --- a/xen/arch/x86/acpi/power.c +++ b/xen/arch/x86/acpi/power.c @@ -181,11 +181,6 @@ static long enter_state_helper(void *data) /* * 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_acpi_sleep *sleep) 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; |