]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ACPI: processor: Remove the duplicated ACPI_PROCESSOR_CLASS macro
authorHanjun Guo <guohanjun@huawei.com>
Fri, 13 Nov 2020 02:08:44 +0000 (10:08 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 17 Nov 2020 17:12:34 +0000 (18:12 +0100)
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 <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_idle.c
drivers/acpi/processor_perflib.c
drivers/acpi/processor_thermal.c
drivers/acpi/processor_throttling.c

index f66236cff69b02ee6a8e3ac8014c35e49571a8a6..d93e400940a31b28aa90139e6958cae49abdd703 100644 (file)
@@ -31,7 +31,6 @@
 #include <asm/apic.h>
 #endif
 
-#define ACPI_PROCESSOR_CLASS            "processor"
 #define _COMPONENT              ACPI_PROCESSOR_COMPONENT
 ACPI_MODULE_NAME("processor_idle");
 
index b04a68950ff14299804809b10f480419219fdaa6..3b5a9646b49dd0f52bf8a0dabbfcb1ce099e3801 100644 (file)
@@ -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");
index 6c7d05b37c986894ab211d7dd3ff7841b3f3cc02..677a132be242b68d04721a3a3d44b112085133ae 100644 (file)
@@ -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
index a0bd56ece3ff55a4cdf0388ee026750123b69022..b1876534324b56954ced8f23a46161f1f67246ee 100644 (file)
@@ -22,7 +22,6 @@
 
 #define PREFIX "ACPI: "
 
-#define ACPI_PROCESSOR_CLASS            "processor"
 #define _COMPONENT              ACPI_PROCESSOR_COMPONENT
 ACPI_MODULE_NAME("processor_throttling");