From 17c5cf0fb993e219bda4f53aa9ec90d3cfcf92ab Mon Sep 17 00:00:00 2001 From: Ganesh Goudar Date: Thu, 28 Jan 2021 16:11:42 +0530 Subject: [PATCH] powerpc/mce: Reduce the size of event arrays Maximum recursive depth of MCE is 4, Considering the maximum depth allowed reduce the size of event to 10 from 100. This saves us ~19kB of memory and has no fatal consequences. Signed-off-by: Ganesh Goudar Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210128104143.70668-1-ganeshgr@linux.ibm.com --- arch/powerpc/include/asm/mce.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/mce.h b/arch/powerpc/include/asm/mce.h index e6c27ae843dc4..7d8b6679ec683 100644 --- a/arch/powerpc/include/asm/mce.h +++ b/arch/powerpc/include/asm/mce.h @@ -204,7 +204,7 @@ struct mce_error_info { bool ignore_event; }; -#define MAX_MC_EVT 100 +#define MAX_MC_EVT 10 /* Release flags for get_mce_event() */ #define MCE_EVENT_RELEASE true -- 2.30.2