linux/acpi: more extcntl code adjustments
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.
Signed-off-by Jan Beulich <[email protected]>
drivers/acpi/processor_core.c +2 -0
@@ -509,7 +509,9 @@ static int acpi_processor_get_info(structrequest_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
@@ -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);/*