WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] ACPI: Remove a redundant call to acpi_hw_

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] ACPI: Remove a redundant call to acpi_hw_register_read().
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Sep 2008 20:20:09 -0700
Delivery-date: Wed, 03 Sep 2008 20:20:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1220442359 -3600
# Node ID a4cf79209a28ccd22473a99c0dc258027b262508
# Parent  021189f8cd784755d9b45ab5e9b947cc38b37f2b
ACPI: Remove a redundant call to acpi_hw_register_read().

Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>
---
 xen/drivers/acpi/hwregs.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r 021189f8cd78 -r a4cf79209a28 xen/drivers/acpi/hwregs.c
--- a/xen/drivers/acpi/hwregs.c Wed Sep 03 11:02:57 2008 +0100
+++ b/xen/drivers/acpi/hwregs.c Wed Sep 03 12:45:59 2008 +0100
@@ -239,11 +239,13 @@ acpi_status acpi_set_register(u32 regist
 
        case ACPI_REGISTER_PM2_CONTROL:
 
+#if 0 /* Redundant read in original Linux code. */
                status = acpi_hw_register_read(ACPI_REGISTER_PM2_CONTROL,
                                               &register_value);
                if (ACPI_FAILURE(status)) {
                        goto unlock_and_exit;
                }
+#endif
 
                ACPI_DEBUG_PRINT((ACPI_DB_IO,
                                  "PM2 control: Read %X from %8.8X%8.8X\n",

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] ACPI: Remove a redundant call to acpi_hw_register_read()., Xen patchbot-unstable <=