mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
printk() is not safe to use in MCE context. Add a lockless memory allocator pool to save error records in MCE context. Those records will be issued later, in a printk-safe context. The idea is inspired by the APEI/GHES driver. We're very conservative and allocate only two pages for it but since we're going to use those pages throughout the system's lifetime, we allocate them statically to avoid early boot time allocation woes. Signed-off-by: Chen, Gong <[email protected]> [ Rewrite. ] Signed-off-by: Borislav Petkov <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Tony Luck <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
12 lines
361 B
Makefile
12 lines
361 B
Makefile
obj-y = mce.o mce-severity.o mce-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_THRESHOLD) += threshold.o
|
|
obj-$(CONFIG_X86_MCE_INJECT) += mce-inject.o
|
|
|
|
obj-$(CONFIG_X86_THERMAL_VECTOR) += therm_throt.o
|
|
|
|
obj-$(CONFIG_ACPI_APEI) += mce-apei.o
|