From 9fc34794d60d4922bcac10efc7ed57f827720e92 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Tue, 12 Jul 2016 22:08:58 +0800 Subject: [PATCH] UefiCpuPkg/MtrrLib: Remove MTRRs display from MtrrSetAllMtrrs() MtrrSetAllMtrrs() maybe used by APs to sync BSP's MTRR settings. BSP's MTRR setting should be displayed if EFI_D_CACHE flag is set when MTRR updated. In MtrrSetAllMtrrs(), it's not necessary to display MTRR setting again due to the MTRR settings should be always same among BSP/APs. This updating could avoid APs output MTRR setting at the same time and make display message corrupted. Cc: Feng Tian Cc: Michael Kinney Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Laszlo Ersek Reviewed-by: Michael Kinney --- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c index 6a6bf765c2..f667a8f796 100644 --- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c +++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c @@ -2103,8 +2103,6 @@ MtrrSetAllMtrrs ( PostMtrrChangeEnableCache (&MtrrContext); - MtrrDebugPrintAllMtrrs (); - return MtrrSetting; } -- 2.39.2