Skip to content

Commit

Permalink
x86/mce: Streamline MCE subsystem's naming
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Borislav Petkov committed Dec 5, 2018
1 parent 2595646 commit 21afaf1
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 21afaf1

Please sign in to comment.