Skip to contentSkip to conversation

linux/acpi: more extcntl code adjustments

PATCH New Jan Beulich 1 participant 1 message Aug 8, 2008 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

drivers/acpi/processor_core.c +2 -0
Index: head-2008-08-07/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);
 
drivers/acpi/processor_extcntl.c +6 -0
Index: head-2008-07-21/drivers/acpi/processor_extcntl.c
===================================================================
@@ -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);
 /*