Commit 7ea6c6c1 authored by Luck, Tony's avatar Luck, Tony Committed by Tony Luck

Move cper.c from drivers/acpi/apei to drivers/firmware/efi

cper.c contains code to decode and print "Common Platform Error Records".
Originally added under drivers/acpi/apei because the only user was in that
same directory - but now we have another consumer, and we shouldn't have
to force CONFIG_ACPI_APEI get access to this code.

Since CPER is defined in the UEFI specification - the logical home for
this code is under drivers/firmware/efi/
Acked-by: default avatarMatt Fleming <>
Acked-by: default avatarIngo Molnar <>
Signed-off-by: default avatarTony Luck <>
parent 56507694
......@@ -374,7 +374,9 @@ source "drivers/acpi/apei/Kconfig"
tristate "Extended Error Log support"
depends on X86_MCE && ACPI_APEI
depends on X86_MCE
select EFI
select UEFI_CPER
default n
Certain usages such as Predictive Failure Analysis (PFA) require
......@@ -2,6 +2,8 @@ config ACPI_APEI
bool "ACPI Platform Error Interface (APEI)"
select PSTORE
select EFI
select UEFI_CPER
depends on X86
APEI allows to report errors (for example from the chipset)
......@@ -3,4 +3,4 @@ obj-$(CONFIG_ACPI_APEI_GHES) += ghes.o
obj-$(CONFIG_ACPI_APEI_EINJ) += einj.o
obj-$(CONFIG_ACPI_APEI_ERST_DEBUG) += erst-dbg.o
apei-y := apei-base.o hest.o cper.o erst.o
apei-y := apei-base.o hest.o erst.o
......@@ -36,4 +36,7 @@ config EFI_VARS_PSTORE_DEFAULT_DISABLE
backend for pstore by default. This setting can be overridden
using the efivars module's pstore_disable parameter.
config UEFI_CPER
def_bool n
......@@ -4,3 +4,4 @@
obj-y += efi.o vars.o
obj-$(CONFIG_EFI_VARS) += efivars.o
obj-$(CONFIG_EFI_VARS_PSTORE) += efi-pstore.o
obj-$(CONFIG_UEFI_CPER) += cper.o
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment