From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.2286.1612407576332667040 for ; Wed, 03 Feb 2021 18:59:36 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: ray.ni@intel.com) IronPort-SDR: zxUHP6r7bA6FuDCz3UK/sn2jhZ3MoOi3xL86tuHR5b2XpeNz1dZWtDZQS0IUIDL8Hws4EupnZh 7TELikrVgB2g== X-IronPort-AV: E=McAfee;i="6000,8403,9884"; a="200135383" X-IronPort-AV: E=Sophos;i="5.79,400,1602572400"; d="scan'208";a="200135383" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2021 18:59:34 -0800 IronPort-SDR: d4GZQmUjdEieQfDYJZQnZmGBHmFAvR05GHmnSPJBYq4xd0/dB4FmWPQxhEWCozEpK6r0F+Ada1 vVLVGi440xCw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,400,1602572400"; d="scan'208";a="480711007" Received: from ray-dev.ccr.corp.intel.com ([10.239.158.87]) by fmsmga001.fm.intel.com with ESMTP; 03 Feb 2021 18:59:34 -0800 From: "Ni, Ray" To: devel@edk2.groups.io Subject: [PATCH 0/2] UefiCpuPkg/MpInitLib: Use XADD to avoid lock acquire/release Date: Thu, 4 Feb 2021 10:59:19 +0800 Message-Id: <20210204025921.1428-1-ray.ni@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Ray Ni (2): UefiCpuPkg/MpInitLib: Use NASM struc to avoid hardcode offset UefiCpuPkg/MpInitLib: Use XADD to avoid lock acquire/release UefiCpuPkg/Library/MpInitLib/Ia32/MpEqu.inc | 54 +++++++++-------- .../Library/MpInitLib/Ia32/MpFuncs.nasm | 52 +++++++--------- UefiCpuPkg/Library/MpInitLib/MpLib.c | 3 +- UefiCpuPkg/Library/MpInitLib/MpLib.h | 3 +- UefiCpuPkg/Library/MpInitLib/X64/MpEqu.inc | 56 ++++++++--------- UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm | 60 ++++++++----------- 6 files changed, 103 insertions(+), 125 deletions(-) -- 2.27.0.windows.1