Skip to content

Commit eed9688

Browse files
committed
Merge branch 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 RAS updates from Borislav Petkov: "This time around we have a subsystem reorganization to offer, with the new directory being arch/x86/kernel/cpu/mce/ and all compilation units' names streamlined under it" * 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/mce: Restore MCE injector's module name x86/mce: Unify pr_* prefix x86/mce: Streamline MCE subsystem's naming
2 parents 72af841 + 72a8f08 commit eed9688

File tree

15 files changed

+26
-17
lines changed

15 files changed

+26
-17
lines changed

arch/x86/kernel/cpu/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o
3636
obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o
3737
obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o
3838

39-
obj-$(CONFIG_X86_MCE) += mcheck/
39+
obj-$(CONFIG_X86_MCE) += mce/
4040
obj-$(CONFIG_MTRR) += mtrr/
4141
obj-$(CONFIG_MICROCODE) += microcode/
4242
obj-$(CONFIG_RESCTRL) += resctrl/
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
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+
9+
mce-inject-y := inject.o
810
obj-$(CONFIG_X86_MCE_INJECT) += mce-inject.o
911

1012
obj-$(CONFIG_X86_THERMAL_VECTOR) += therm_throt.o
1113

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

1416
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
* Author: Andi Kleen
99
*/
1010

11-
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
12-
1311
#include <linux/thread_info.h>
1412
#include <linux/capability.h>
1513
#include <linux/miscdevice.h>
@@ -52,7 +50,7 @@
5250
#include <asm/msr.h>
5351
#include <asm/reboot.h>
5452

55-
#include "mce-internal.h"
53+
#include "internal.h"
5654

5755
static DEFINE_MUTEX(mce_log_mutex);
5856

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@
88
* Author: Andi Kleen
99
*/
1010

11-
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
12-
1311
#include <linux/miscdevice.h>
1412
#include <linux/slab.h>
1513
#include <linux/kmod.h>
1614
#include <linux/poll.h>
1715

18-
#include "mce-internal.h"
16+
#include "internal.h"
1917

2018
static BLOCKING_NOTIFIER_HEAD(mce_injector_chain);
2119

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

arch/x86/kernel/cpu/mcheck/mce-internal.h renamed to arch/x86/kernel/cpu/mce/internal.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#ifndef __X86_MCE_INTERNAL_H__
33
#define __X86_MCE_INTERNAL_H__
44

5+
#undef pr_fmt
6+
#define pr_fmt(fmt) "mce: " fmt
7+
58
#include <linux/device.h>
69
#include <asm/mce.h>
710

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#include <asm/mce.h>
1515
#include <asm/msr.h>
1616

17+
#include "internal.h"
18+
1719
/* By default disabled */
1820
int mce_p5_enabled __read_mostly;
1921

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include <asm/msr.h>
3131
#include <asm/trace/irq_vectors.h>
3232

33+
#include "internal.h"
34+
3335
/* How long to wait between reporting thermal events */
3436
#define CHECK_INTERVAL (300 * HZ)
3537

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#include <asm/mce.h>
1111
#include <asm/trace/irq_vectors.h>
1212

13+
#include "internal.h"
14+
1315
static void default_threshold_interrupt(void)
1416
{
1517
pr_err("Unexpected threshold interrupt at vector %x\n",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include <asm/mce.h>
1414
#include <asm/msr.h>
1515

16+
#include "internal.h"
17+
1618
/* Machine check handler for WinChip C6: */
1719
static void winchip_machine_check(struct pt_regs *regs, long error_code)
1820
{

0 commit comments

Comments
 (0)