From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web09.16152.1667453913979818015 for ; Wed, 02 Nov 2022 22:38:34 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=PToBbUhS; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: yuanhao.xie@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667453914; x=1698989914; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=m8qvU8gQh1R+91riR9QPEi6d3yf3uwVHmp9eFlw/hQU=; b=PToBbUhSHNUAO00nIaH6yXxyup/XqShIaut1ePeCe5I26a7KUCfCbehG wuJm62bba0GkS1l377MH1AkZ12c/u93e1TK11cyxwRGvhMcUKzgKN8wSa LkDUYJfdSDO3BXaUKcEyQqW/D492Xq82uAMP7J7Ng9ALdgF+H79HRKieR vFCoAVZAfrkqDu2nXjarWH/YaRMCULpd2LC0ioU8J29eykpumJaIIpYz5 x4A0+zXWw/wrWBPz1Id2C2LpcSOXtLcXf8U/nwECWZhY4LTTnSDsLjEil Q6UTXyKBsNfl3irqobZSOeSUliXIw4mNoEOyfshSxxgecF+yzUrGfC7Vz Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10519"; a="307207626" X-IronPort-AV: E=Sophos;i="5.95,235,1661842800"; d="scan'208";a="307207626" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2022 22:38:08 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10519"; a="963805783" X-IronPort-AV: E=Sophos;i="5.95,235,1661842800"; d="scan'208";a="963805783" Received: from shwdeopenlab705.ccr.corp.intel.com ([10.239.56.33]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2022 22:38:07 -0700 From: "Yuanhao Xie" To: devel@edk2.groups.io Cc: Yuanhao , Eric Dong , Rahul Kumar , Ray Ni Subject: [PATCH 3/3] UefiCpuPkg: Removed the unused MpLock Date: Thu, 3 Nov 2022 13:37:47 +0800 Message-Id: <20221103053747.289-4-yuanhao.xie@intel.com> X-Mailer: git-send-email 2.36.1.windows.1 In-Reply-To: <20221103053747.289-1-yuanhao.xie@intel.com> References: <20221103053747.289-1-yuanhao.xie@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Yuanhao Signed-off-by: Yuanhao Xie Cc: Eric Dong Cc: Rahul Kumar Cc: Ray Ni --- UefiCpuPkg/Library/MpInitLib/MpLib.c | 1 - UefiCpuPkg/Library/MpInitLib/MpLib.h | 1 - 2 files changed, 2 deletions(-) diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c b/UefiCpuPkg/Library/MpInitLib/MpLib.c index c7d1e58909..25e0b3c585 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.c @@ -1942,7 +1942,6 @@ MpInitLibInitialize ( CpuMpData->SwitchBspFlag = FALSE; CpuMpData->CpuData = (CPU_AP_DATA *)(CpuMpData + 1); CpuMpData->CpuInfoInHob = (UINT64)(UINTN)(CpuMpData->CpuData + MaxLogicalProcessorNumber); - InitializeSpinLock (&CpuMpData->MpLock); CpuMpData->SevEsIsEnabled = ConfidentialComputingGuestHas (CCAttrAmdSevEs); CpuMpData->SevSnpIsEnabled = ConfidentialComputingGuestHas (CCAttrAmdSevSnp); CpuMpData->SevEsAPBuffer = (UINTN)-1; diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.h b/UefiCpuPkg/Library/MpInitLib/MpLib.h index d6a416b943..b5bd695ead 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.h +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.h @@ -241,7 +241,6 @@ struct _CPU_MP_DATA { // Please make sure the fields offset same in the different // architecture. // - SPIN_LOCK MpLock; UINTN Buffer; UINTN CpuApStackSize; MP_ASSEMBLY_ADDRESS_MAP AddressMap; -- 2.36.1.windows.1