x86/mce: Streamline MCE subsystem's naming
authorBorislav Petkov <bp@suse.de>
Sun, 18 Nov 2018 14:15:05 +0000 (15:15 +0100)
committerBorislav Petkov <bp@suse.de>
Wed, 5 Dec 2018 17:00:29 +0000 (18:00 +0100)
Rename the containing folder to "mce" which is the most widespread name.
Drop the "mce[-_]" filename prefix of some compilation units (while
others don't have it).

This unifies the file naming in the MCE subsystem:

mce/
|-- amd.c
|-- apei.c
|-- core.c
|-- dev-mcelog.c
|-- genpool.c
|-- inject.c
|-- intel.c
|-- internal.h
|-- Makefile
|-- p5.c
|-- severity.c
|-- therm_throt.c
|-- threshold.c
`-- winchip.c

No functional changes.

Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20181205141323.14995-1-bp@alien8.de
15 files changed:
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/mce/Makefile [moved from arch/x86/kernel/cpu/mcheck/Makefile with 52% similarity]
arch/x86/kernel/cpu/mce/amd.c [moved from arch/x86/kernel/cpu/mcheck/mce_amd.c with 99% similarity]
arch/x86/kernel/cpu/mce/apei.c [moved from arch/x86/kernel/cpu/mcheck/mce-apei.c with 99% similarity]
arch/x86/kernel/cpu/mce/core.c [moved from arch/x86/kernel/cpu/mcheck/mce.c with 99% similarity]
arch/x86/kernel/cpu/mce/dev-mcelog.c [moved from arch/x86/kernel/cpu/mcheck/dev-mcelog.c with 99% similarity]
arch/x86/kernel/cpu/mce/genpool.c [moved from arch/x86/kernel/cpu/mcheck/mce-genpool.c with 99% similarity]
arch/x86/kernel/cpu/mce/inject.c [moved from arch/x86/kernel/cpu/mcheck/mce-inject.c with 99% similarity]
arch/x86/kernel/cpu/mce/intel.c [moved from arch/x86/kernel/cpu/mcheck/mce_intel.c with 99% similarity]
arch/x86/kernel/cpu/mce/internal.h [moved from arch/x86/kernel/cpu/mcheck/mce-internal.h with 100% similarity]
arch/x86/kernel/cpu/mce/p5.c [moved from arch/x86/kernel/cpu/mcheck/p5.c with 100% similarity]
arch/x86/kernel/cpu/mce/severity.c [moved from arch/x86/kernel/cpu/mcheck/mce-severity.c with 99% similarity]
arch/x86/kernel/cpu/mce/therm_throt.c [moved from arch/x86/kernel/cpu/mcheck/therm_throt.c with 100% similarity]
arch/x86/kernel/cpu/mce/threshold.c [moved from arch/x86/kernel/cpu/mcheck/threshold.c with 100% similarity]
arch/x86/kernel/cpu/mce/winchip.c [moved from arch/x86/kernel/cpu/mcheck/winchip.c with 100% similarity]

index 1f5d229..43afe70 100644 (file)
@@ -40,7 +40,7 @@ obj-$(CONFIG_INTEL_RDT)       += intel_rdt.o intel_rdt_rdtgroup.o intel_rdt_monitor.o
 obj-$(CONFIG_INTEL_RDT)        += intel_rdt_ctrlmondata.o intel_rdt_pseudo_lock.o
 CFLAGS_intel_rdt_pseudo_lock.o = -I$(src)
 
-obj-$(CONFIG_X86_MCE)                  += mcheck/
+obj-$(CONFIG_X86_MCE)                  += mce/
 obj-$(CONFIG_MTRR)                     += mtrr/
 obj-$(CONFIG_MICROCODE)                        += microcode/
 
similarity index 52%
rename from arch/x86/kernel/cpu/mcheck/Makefile
rename to arch/x86/kernel/cpu/mce/Makefile
index bcc7c54..7657597 100644 (file)
@@ -1,14 +1,14 @@
 # SPDX-License-Identifier: GPL-2.0
-obj-y                          =  mce.o mce-severity.o mce-genpool.o
+obj-y                          =  core.o severity.o genpool.o
 
 obj-$(CONFIG_X86_ANCIENT_MCE)  += winchip.o p5.o
-obj-$(CONFIG_X86_MCE_INTEL)    += mce_intel.o
-obj-$(CONFIG_X86_MCE_AMD)      += mce_amd.o
+obj-$(CONFIG_X86_MCE_INTEL)    += intel.o
+obj-$(CONFIG_X86_MCE_AMD)      += amd.o
 obj-$(CONFIG_X86_MCE_THRESHOLD) += threshold.o
-obj-$(CONFIG_X86_MCE_INJECT)   += mce-inject.o
+obj-$(CONFIG_X86_MCE_INJECT)   += inject.o
 
 obj-$(CONFIG_X86_THERMAL_VECTOR) += therm_throt.o
 
-obj-$(CONFIG_ACPI_APEI)                += mce-apei.o
+obj-$(CONFIG_ACPI_APEI)                += apei.o
 
 obj-$(CONFIG_X86_MCELOG_LEGACY)        += dev-mcelog.o
similarity index 99%
rename from arch/x86/kernel/cpu/mcheck/mce_amd.c
rename to arch/x86/kernel/cpu/mce/amd.c
index e12454e..4a2fb59 100644 (file)
@@ -28,7 +28,7 @@
 #include <asm/msr.h>
 #include <asm/trace/irq_vectors.h>
 
-#include "mce-internal.h"
+#include "internal.h"
 
 #define NR_BLOCKS         5
 #define THRESHOLD_MAX     0xFFF
similarity index 99%
rename from arch/x86/kernel/cpu/mcheck/mce-apei.c
rename to arch/x86/kernel/cpu/mce/apei.c
index 2eee853..1d9b3ce 100644 (file)
@@ -36,7 +36,7 @@
 #include <acpi/ghes.h>
 #include <asm/mce.h>
 
-#include "mce-internal.h"
+#include "internal.h"
 
 void apei_mce_report_mem_error(int severity, struct cper_sec_mem_err *mem_err)
 {
similarity index 99%
rename from arch/x86/kernel/cpu/mcheck/mce.c
rename to arch/x86/kernel/cpu/mce/core.c
index 36d2696..b0ae12c 100644 (file)
@@ -52,7 +52,7 @@
 #include <asm/msr.h>
 #include <asm/reboot.h>
 
-#include "mce-internal.h"
+#include "internal.h"
 
 static DEFINE_MUTEX(mce_log_mutex);
 
similarity index 99%
rename from arch/x86/kernel/cpu/mcheck/dev-mcelog.c
rename to arch/x86/kernel/cpu/mce/dev-mcelog.c
index 27f394a..41d9169 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/kmod.h>
 #include <linux/poll.h>
 
-#include "mce-internal.h"
+#include "internal.h"
 
 static BLOCKING_NOTIFIER_HEAD(mce_injector_chain);
 
similarity index 99%
rename from arch/x86/kernel/cpu/mcheck/mce-genpool.c
rename to arch/x86/kernel/cpu/mce/genpool.c
index 217cd44..3395549 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/mm.h>
 #include <linux/genalloc.h>
 #include <linux/llist.h>
-#include "mce-internal.h"
+#include "internal.h"
 
 /*
  * printk() is not safe in MCE context. This is a lock-less memory allocator
similarity index 99%
rename from arch/x86/kernel/cpu/mcheck/mce-inject.c
rename to arch/x86/kernel/cpu/mce/inject.c
index 1fc424c..8492ef7 100644 (file)
@@ -38,7 +38,7 @@
 #include <asm/nmi.h>
 #include <asm/smp.h>
 
-#include "mce-internal.h"
+#include "internal.h"
 
 /*
  * Collect all the MCi_XXX settings
similarity index 99%
rename from arch/x86/kernel/cpu/mcheck/mce_intel.c
rename to arch/x86/kernel/cpu/mce/intel.c
index d05be30..e43eb67 100644 (file)
@@ -18,7 +18,7 @@
 #include <asm/msr.h>
 #include <asm/mce.h>
 
-#include "mce-internal.h"
+#include "internal.h"
 
 /*
  * Support for Intel Correct Machine Check Interrupts. This allows
similarity index 99%
rename from arch/x86/kernel/cpu/mcheck/mce-severity.c
rename to arch/x86/kernel/cpu/mce/severity.c
index 44396d5..dc3e26e 100644 (file)
@@ -16,7 +16,7 @@
 #include <asm/mce.h>
 #include <linux/uaccess.h>
 
-#include "mce-internal.h"
+#include "internal.h"
 
 /*
  * Grade an mce by severity. In general the most severe ones are processed