From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=eric.dong@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D241921A02937 for ; Tue, 4 Sep 2018 23:22:24 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2018 23:22:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,332,1531810800"; d="scan'208";a="68480619" Received: from ydong10-mobl.ccr.corp.intel.com ([10.239.192.27]) by fmsmga008.fm.intel.com with ESMTP; 04 Sep 2018 23:22:21 -0700 From: Eric Dong To: edk2-devel@lists.01.org Cc: Dandan Bi Date: Wed, 5 Sep 2018 14:22:18 +0800 Message-Id: <20180905062218.13148-1-eric.dong@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 Subject: [Patch] UefiCpuPkg/MpInitLib: Fix ECC issues. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2018 06:22:25 -0000 Fix trailing white spaces and invalid line ending issue. Cc: Dandan Bi Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong --- UefiCpuPkg/Library/MpInitLib/MpLib.c | 2 +- UefiCpuPkg/Library/MpInitLib/MpLib.h | 2 +- UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf | 2 +- UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c b/UefiCpuPkg/Library/MpInitLib/MpLib.c index 377876643f..5c562d4759 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.c @@ -1014,7 +1014,7 @@ WakeUpAP ( CpuData = &CpuMpData->CpuData[Index]; // // All AP(include disabled AP) will be woke up by INIT-SIPI-SIPI, but - // the AP procedure will be skipped for disabled AP because AP state + // the AP procedure will be skipped for disabled AP because AP state // is not CpuStateReady. // if (GetApState (CpuData) == CpuStateDisabled && !WakeUpDisabledAps) { diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.h b/UefiCpuPkg/Library/MpInitLib/MpLib.h index 75f3fdda1d..773db76b61 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.h +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.h @@ -257,7 +257,7 @@ struct _CPU_MP_DATA { // Whether need to use Init-Sipi-Sipi to wake up the APs. // Two cases need to set this value to TRUE. One is in HLT // loop mode, the other is resume from S3 which loop mode - // will be hardcode change to HLT mode by PiSmmCpuDxeSmm + // will be hardcode change to HLT mode by PiSmmCpuDxeSmm // driver. // BOOLEAN WakeUpByInitSipiSipi; diff --git a/UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf b/UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf index 43a3b3b036..81036f0b12 100644 --- a/UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf +++ b/UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf @@ -67,4 +67,4 @@ gUefiCpuPkgTokenSpaceGuid.PcdCpuApTargetCstate ## SOMETIMES_CONSUMES [Guids] - gEdkiiS3SmmInitDoneGuid \ No newline at end of file + gEdkiiS3SmmInitDoneGuid diff --git a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c index 4143ee4bb1..fa7e107e39 100644 --- a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c +++ b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c @@ -516,7 +516,7 @@ AllocateAcpiCpuData ( // // Allocate buffer for empty RegisterTable and PreSmmInitRegisterTable for all CPUs - // + // TableSize = 2 * NumberOfCpus * sizeof (CPU_REGISTER_TABLE); RegisterTable = AllocatePages (EFI_SIZE_TO_PAGES (TableSize)); ASSERT (RegisterTable != NULL); -- 2.16.2.windows.1