Skip to content

Commit badbfae

Browse files
suryasaimadhujfvogel
authored andcommitted
x86/mce: Streamline MCE subsystem's naming
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 <[email protected]> Reviewed-by: Ingo Molnar <[email protected]> Acked-by: Tony Luck <[email protected]> Link: https://lkml.kernel.org/r/[email protected] (cherry picked from commit 21afaf1) Orabug: 29547647 Signed-off-by: Somasundaram Krishnasamy <[email protected]> Reviewed-by: John Donnelly <[email protected]>
1 parent 8a288bd commit badbfae

File tree

15 files changed

+14
-14
lines changed

15 files changed

+14
-14
lines changed

arch/x86/kernel/cpu/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o
3838

3939
obj-$(CONFIG_INTEL_RDT) += intel_rdt.o intel_rdt_rdtgroup.o intel_rdt_monitor.o intel_rdt_ctrlmondata.o
4040

41-
obj-$(CONFIG_X86_MCE) += mcheck/
41+
obj-$(CONFIG_X86_MCE) += mce/
4242
obj-$(CONFIG_MTRR) += mtrr/
4343
obj-$(CONFIG_MICROCODE) += microcode/
4444

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
obj-y = mce.o mce-severity.o mce-genpool.o
2+
obj-y = core.o severity.o genpool.o
33

44
obj-$(CONFIG_X86_ANCIENT_MCE) += winchip.o p5.o
5-
obj-$(CONFIG_X86_MCE_INTEL) += mce_intel.o
6-
obj-$(CONFIG_X86_MCE_AMD) += mce_amd.o
5+
obj-$(CONFIG_X86_MCE_INTEL) += intel.o
6+
obj-$(CONFIG_X86_MCE_AMD) += amd.o
77
obj-$(CONFIG_X86_MCE_THRESHOLD) += threshold.o
8-
obj-$(CONFIG_X86_MCE_INJECT) += mce-inject.o
8+
obj-$(CONFIG_X86_MCE_INJECT) += inject.o
99

1010
obj-$(CONFIG_X86_THERMAL_VECTOR) += therm_throt.o
1111

12-
obj-$(CONFIG_ACPI_APEI) += mce-apei.o
12+
obj-$(CONFIG_ACPI_APEI) += apei.o
1313

1414
obj-$(CONFIG_X86_MCELOG_LEGACY) += dev-mcelog.o

arch/x86/kernel/cpu/mcheck/mce_amd.c renamed to arch/x86/kernel/cpu/mce/amd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <asm/msr.h>
2929
#include <asm/trace/irq_vectors.h>
3030

31-
#include "mce-internal.h"
31+
#include "internal.h"
3232

3333
#define NR_BLOCKS 5
3434
#define THRESHOLD_MAX 0xFFF

arch/x86/kernel/cpu/mcheck/mce-apei.c renamed to arch/x86/kernel/cpu/mce/apei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include <acpi/ghes.h>
3737
#include <asm/mce.h>
3838

39-
#include "mce-internal.h"
39+
#include "internal.h"
4040

4141
void apei_mce_report_mem_error(int severity, struct cper_sec_mem_err *mem_err)
4242
{

arch/x86/kernel/cpu/mcheck/mce.c renamed to arch/x86/kernel/cpu/mce/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#include <asm/msr.h>
5555
#include <asm/reboot.h>
5656

57-
#include "mce-internal.h"
57+
#include "internal.h"
5858

5959
static DEFINE_MUTEX(mce_log_mutex);
6060

arch/x86/kernel/cpu/mcheck/dev-mcelog.c renamed to arch/x86/kernel/cpu/mce/dev-mcelog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <linux/kmod.h>
1616
#include <linux/poll.h>
1717

18-
#include "mce-internal.h"
18+
#include "internal.h"
1919

2020
static BLOCKING_NOTIFIER_HEAD(mce_injector_chain);
2121

arch/x86/kernel/cpu/mcheck/mce-genpool.c renamed to arch/x86/kernel/cpu/mce/genpool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <linux/mm.h>
1111
#include <linux/genalloc.h>
1212
#include <linux/llist.h>
13-
#include "mce-internal.h"
13+
#include "internal.h"
1414

1515
/*
1616
* printk() is not safe in MCE context. This is a lock-less memory allocator

arch/x86/kernel/cpu/mcheck/mce-inject.c renamed to arch/x86/kernel/cpu/mce/inject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include <asm/nmi.h>
3939
#include <asm/smp.h>
4040

41-
#include "mce-internal.h"
41+
#include "internal.h"
4242

4343
/*
4444
* Collect all the MCi_XXX settings

arch/x86/kernel/cpu/mcheck/mce_intel.c renamed to arch/x86/kernel/cpu/mce/intel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <asm/msr.h>
1919
#include <asm/mce.h>
2020

21-
#include "mce-internal.h"
21+
#include "internal.h"
2222

2323
/*
2424
* Support for Intel Correct Machine Check Interrupts. This allows
File renamed without changes.

arch/x86/kernel/cpu/mcheck/mce-severity.c renamed to arch/x86/kernel/cpu/mce/severity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <asm/mce.h>
1717
#include <linux/uaccess.h>
1818

19-
#include "mce-internal.h"
19+
#include "internal.h"
2020

2121
/*
2222
* Grade an mce by severity. In general the most severe ones are processed

0 commit comments

Comments
 (0)