ACPI: processor: Remove the duplicated ACPI_PROCESSOR_CLASS macro
Subsystems (2)
PATCH 1/1 ACPI: processor: Remove the duplicated ACPI_PROCESSOR_CLASS macro
The ACPI_PROCESSOR_CLASS macro is defined in <acpi/processor.h>, and ACPI drivers for processor already included <acpi/processor.h>, so we can remove those duplicated ACPI_PROCESSOR_CLASS macros.
Signed-off-by Hanjun Guo <[email protected]>
--- drivers/acpi/processor_idle.c | 1 - drivers/acpi/processor_perflib.c | 1 - drivers/acpi/processor_thermal.c | 2 -- drivers/acpi/processor_throttling.c | 1 - 4 files changed, 5 deletions(-)
drivers/acpi/processor_idle.c +0 -1
@@ -31,7 +31,6 @@#include <asm/apic.h> #endif -#define ACPI_PROCESSOR_CLASS "processor"#define _COMPONENT ACPI_PROCESSOR_COMPONENTACPI_MODULE_NAME ("processor_idle" );
drivers/acpi/processor_perflib.c +0 -1
@@ -22,7 +22,6 @@#define PREFIX "ACPI: " -#define ACPI_PROCESSOR_CLASS "processor"#define ACPI_PROCESSOR_FILE_PERFORMANCE "performance"#define _COMPONENT ACPI_PROCESSOR_COMPONENTACPI_MODULE_NAME ("processor_perflib" );
drivers/acpi/processor_thermal.c +0 -2
@@ -19,8 +19,6 @@#define PREFIX "ACPI: " -#define ACPI_PROCESSOR_CLASS "processor" -#ifdef CONFIG_CPU_FREQ /* If a passive cooling situation is detected, primarily CPUfreq is used, as it
drivers/acpi/processor_throttling.c +0 -1
@@ -22,7 +22,6 @@#define PREFIX "ACPI: " -#define ACPI_PROCESSOR_CLASS "processor"#define _COMPONENT ACPI_PROCESSOR_COMPONENTACPI_MODULE_NAME ("processor_throttling" );
Signature · 1 line
1.7.12.4
Quoted 55 lines · Hanjun Guo
The
ACPI_PROCESSOR_CLASSmacro is defined in <acpi/processor.h>, and ACPI drivers for processor already included <acpi/processor.h>, so we can remove those duplicatedACPI_PROCESSOR_CLASSmacros.Signed-off-by Hanjun Guo <[email protected]>--- drivers/acpi/processor_idle.c | 1 - drivers/acpi/processor_perflib.c | 1 - drivers/acpi/processor_thermal.c | 2 -- drivers/acpi/processor_throttling.c | 1 - 4 files changed, 5 deletions(-)drivers/acpi/processor_idle.c +0
-1@@ -31,7 +31,6 @@#include <asm/apic.h> #endif -#define ACPI_PROCESSOR_CLASS "processor"#define _COMPONENT ACPI_PROCESSOR_COMPONENTACPI_MODULE_NAME ("processor_idle" );drivers/acpi/processor_perflib.c +0
-1@@ -22,7 +22,6 @@#define PREFIX "ACPI: " -#define ACPI_PROCESSOR_CLASS "processor"#define ACPI_PROCESSOR_FILE_PERFORMANCE "performance"#define _COMPONENT ACPI_PROCESSOR_COMPONENTACPI_MODULE_NAME ("processor_perflib" );drivers/acpi/processor_thermal.c +0
-2@@ -19,8 +19,6 @@#define PREFIX "ACPI: " -#define ACPI_PROCESSOR_CLASS "processor" -#ifdef CONFIG_CPU_FREQ /* If a passive cooling situation is detected, primarily CPUfreq is used, as it drivers/acpi/processor_throttling.c +0
-0
drivers/acpi/processor_throttling.c
Quoted 8 lines
drivers/acpi/processor_throttling.c +0
-2@@ -22,7 +22,6 @@#define PREFIX "ACPI: " -#define ACPI_PROCESSOR_CLASS "processor"#define _COMPONENT ACPI_PROCESSOR_COMPONENTACPI_MODULE_NAME ("processor_throttling" ); --
Applied as 5.11 material along with the other janitorial patches posted by you last week.
Thanks!