Jan Beulich
2008-Aug-08 12:00 UTC
[Xen-devel] [PATCH] linux/acpi: more extcntl code adjustments
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@novell.com>
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@lists.xensource.com
http://lists.xensource.com/xen-devel