]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
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 1f5d2291c31ec24a765bda0f4b0f0bcb7aae069d..43afe707c6fb90d0ae7627760eed3da4eae11a4a 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 bcc7c54c7041f95b2f0cf55b8d52fa07511b9365..765759765ab7dad77e1aa848aa4d75d32c3de0e8 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 e12454e21b8a5decc64af5e9143d2b469d6ecfbb..4a2fb59a372e77f01a36a0e34370cdadec263519 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 2eee853796891460c5cb0dd20dc594697bdd6d1f..1d9b3ce662a0b8a6d8347a76ae88257c1b82531d 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 36d2696c9563e88a8e354068d7e8a43d636371d3..b0ae12cf7827f993aaaef78614209ba820fee9fc 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 27f394ac983f6659cd260e766f6ffafa323e8215..41d9169d27fa27f9638cef651e4ccd2a9284c342 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 217cd4449bc9db3aedfd6367529bc9ca99fb8443..3395549c51d3f74502c18060ac5160ad934a1b48 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 1fc424c40a31851012264262a1728ffc27b1c36c..8492ef7d9015086fb44e08ec532438bf43056d5c 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 d05be307d081a67c12eef433b5c832fcfcffa1a7..e43eb6732630ae9b06201e809b1086765afd36fd 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 44396d52198719df0b0ad7652ba009409ff19037..dc3e26e905a32f5c346852606a55111338b6ca2d 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