Skip to content

Commit

Permalink
ACPI: processor: Remove the duplicated ACPI_PROCESSOR_CLASS macro
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
guohanjun authored and rafaeljw committed Nov 17, 2020
1 parent 09162bc commit eb37ba3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion drivers/acpi/processor_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <asm/apic.h>
#endif

#define ACPI_PROCESSOR_CLASS "processor"
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
ACPI_MODULE_NAME("processor_idle");

Expand Down
1 change: 0 additions & 1 deletion drivers/acpi/processor_perflib.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#define PREFIX "ACPI: "

#define ACPI_PROCESSOR_CLASS "processor"
#define ACPI_PROCESSOR_FILE_PERFORMANCE "performance"
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
ACPI_MODULE_NAME("processor_perflib");
Expand Down
2 changes: 0 additions & 2 deletions drivers/acpi/processor_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion drivers/acpi/processor_throttling.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#define PREFIX "ACPI: "

#define ACPI_PROCESSOR_CLASS "processor"
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
ACPI_MODULE_NAME("processor_throttling");

Expand Down

0 comments on commit eb37ba3

Please sign in to comment.