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-devel

[Xen-devel] [PATCH] linux/acpi: more extcntl code adjustments

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux/acpi: more extcntl code adjustments
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Fri, 08 Aug 2008 13:00:43 +0100
Delivery-date: Fri, 08 Aug 2008 05:00:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Restore a preprocessor conditional for native to remain unaltered.

Add necessary definitions for being able to build with CONFIG_ACPI_DEBUG.

As usual, written and tested on 2.6.26 and made apply to the 2.6.18
tree without further testing.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Index: head-2008-08-07/drivers/acpi/processor_core.c
===================================================================
--- head-2008-07-21.orig/drivers/acpi/processor_core.c
+++ head-2008-07-21/drivers/acpi/processor_core.c
@@ -509,7 +509,9 @@ static int acpi_processor_get_info(struct
                request_region(pr->throttling.address, 6, "ACPI CPU throttle");
        }
 
+#if defined(CONFIG_CPU_FREQ) || defined(CONFIG_PROCESSOR_EXTERNAL_CONTROL)
        acpi_processor_ppc_has_changed(pr);
+#endif
        acpi_processor_get_throttling_info(pr);
        acpi_processor_get_limit_info(pr);
 
Index: head-2008-07-21/drivers/acpi/processor_extcntl.c
===================================================================
--- head-2008-07-21.orig/drivers/acpi/processor_extcntl.c       2008-07-21 
12:48:15.000000000 +0200
+++ head-2008-07-21/drivers/acpi/processor_extcntl.c    2008-07-22 
10:05:23.000000000 +0200
@@ -30,6 +30,12 @@
 
 #include <acpi/processor.h>
 
+#define ACPI_PROCESSOR_COMPONENT        0x01000000
+#define ACPI_PROCESSOR_CLASS            "processor"
+#define ACPI_PROCESSOR_DRIVER_NAME      "ACPI Processor Driver"
+#define _COMPONENT              ACPI_PROCESSOR_COMPONENT
+ACPI_MODULE_NAME("acpi_processor")
+
 static int processor_extcntl_parse_csd(struct acpi_processor *pr);
 static int processor_extcntl_get_performance(struct acpi_processor *pr);
 /*




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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux/acpi: more extcntl code adjustments, Jan Beulich <=