From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Thu, 08 Aug 2019 13:15:21 -0700 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6321530A5414; Thu, 8 Aug 2019 20:15:21 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-117-122.ams2.redhat.com [10.36.117.122]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8900A5D70D; Thu, 8 Aug 2019 20:15:20 +0000 (UTC) Subject: Re: [Patch 1/2] UefiCpuPkg/RegisterCpuFeaturesLib: Clean up useless parameter. To: Eric Dong , devel@edk2.groups.io Cc: Ray Ni References: <20190808132442.33936-1-eric.dong@intel.com> <20190808132442.33936-2-eric.dong@intel.com> From: "Laszlo Ersek" Message-ID: <36d9ea8d-1bcd-220d-a574-717a84a7efbd@redhat.com> Date: Thu, 8 Aug 2019 22:15:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190808132442.33936-2-eric.dong@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Thu, 08 Aug 2019 20:15:21 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 08/08/19 15:24, Eric Dong wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2060 > > Remove the useless parameter. > > Signed-off-by: Eric Dong > Cc: Ray Ni > Cc: Laszlo Ersek > --- > UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeatures.h | 1 - > .../Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c | 1 - > 2 files changed, 2 deletions(-) > > diff --git a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeatures.h b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeatures.h > index a25dd69292..7c48b0a645 100644 > --- a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeatures.h > +++ b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeatures.h > @@ -58,7 +58,6 @@ typedef struct { > // Flags used when program the register. > // > typedef struct { > - volatile UINTN ConsoleLogLock; // Spinlock used to control console. > volatile UINTN MemoryMappedLock; // Spinlock used to program mmio > volatile UINT32 *CoreSemaphoreCount; // Semaphore containers used to program Core semaphore. > volatile UINT32 *PackageSemaphoreCount; // Semaphore containers used to program Package semaphore. > diff --git a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c > index 493566de5d..67885bf69b 100644 > --- a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c > +++ b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c > @@ -839,7 +839,6 @@ RegisterCpuFeature ( > if (CpuFeaturesData->FeaturesCount == 0) { > InitializeListHead (&CpuFeaturesData->FeatureList); > InitializeSpinLock (&CpuFeaturesData->CpuFlags.MemoryMappedLock); > - InitializeSpinLock (&CpuFeaturesData->CpuFlags.ConsoleLogLock); > // > // Code assumes below three PCDs have PCD same buffer size. > // > Please replace "useless parameter" in the subject and in the commit message body also, with "useless ConsoleLogLock spinlock". With that: Reviewed-by: Laszlo Ersek Thanks Laszlo