From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2A98421A10983 for ; Tue, 28 Nov 2017 09:31:13 -0800 (PST) Received: by mail-wr0-x244.google.com with SMTP id y21so860167wrc.1 for ; Tue, 28 Nov 2017 09:35:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Bz2itAxuvlLPXsdlo5pqPCHaqLcKWZP1gZbd22LdnWM=; b=ibOewMBatlF97EMTCl4Y0FJHTwXUAoVJaXsQ4nFQ2JyHOaHTW4JYQgn2EPz6nqbopl Tk/QzlCoDJRTRvusvhFhio5BHYliEZ9w801afQ1EJyffP0GjrHmmX55ShDyXgMXngZbl Cq2rAx6HSBYiyBboUBhp8/PbKddcmwIwBglTQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Bz2itAxuvlLPXsdlo5pqPCHaqLcKWZP1gZbd22LdnWM=; b=N7Y0EeenBviL7fK8uO7EE2KacrNcWMqncWtTFsnPoQ+OmNjxq7Ujr2efkL57Anl9cq 8VwdiVaH6kHYg1zQnLPfJfZaYaXu7U0yYNaxpgSTLcNEquHIpUv6WBJP95qGZXUQTI0L ySd0O9uAk1Fx5CBY2MzH/Vi+MZfeybIusXmXinFpXJf+EaxDEtJkhHt2xtSpyo+XMttK wKLQahsApNYYlpn+2rW7fS4wagqLquLCHv3yO9fcyZyBDClzHhrziEDsDNaoFMtIfNTg Muxkfjlfogcuvo2tHNMBHkW3z6HBT+YUTr1bg8M/F8JSUHtLRGWc9J1Jxd3+Kvu5BiPv LAgg== X-Gm-Message-State: AJaThX6eidtDtMJDfTwj1eipwUfazsGqfx+lDvar3lEyFnZzQdPzedak IPWchYWX7lGkyYK+sIKljTviUAfg4DM= X-Google-Smtp-Source: AGs4zMZ6idK+xdFtQZ/Pu2aEW2eJuOJDrYE8aZkanbZSLWqwr3f18EtACnmKurC8aGvAdAIUlQM6RA== X-Received: by 10.223.169.68 with SMTP id u62mr34878619wrc.30.1511890535236; Tue, 28 Nov 2017 09:35:35 -0800 (PST) Received: from localhost.localdomain ([105.133.187.232]) by smtp.gmail.com with ESMTPSA id m133sm21164wmd.40.2017.11.28.09.35.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Nov 2017 09:35:34 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, Ard Biesheuvel Date: Tue, 28 Nov 2017 17:35:26 +0000 Message-Id: <20171128173526.22413-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [PATCH] Silicon/AMD Silicon/Hisilicon: remove -ArmGetCpuCountPerCluster() X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 17:31:14 -0000 The function ArmGetCpuCountPerCluster () was moved out of ArmPlatformLib because it was unused (except internally by one of the implementations) So remove the remaining implementations from edk2-platforms. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Silicon/AMD/Styx/Library/AmdStyxLib/AArch64/Helper.S | 6 ------ Silicon/AMD/Styx/Library/AmdStyxLib/Styx.c | 6 ------ Silicon/Hisilicon/Library/ArmPlatformLibHisilicon/AArch64/Helper.S | 6 ------ Silicon/Hisilicon/Library/ArmPlatformLibHisilicon/ArmPlatformLib.c | 5 ----- 4 files changed, 23 deletions(-) diff --git a/Silicon/AMD/Styx/Library/AmdStyxLib/AArch64/Helper.S b/Silicon/AMD/Styx/Library/AmdStyxLib/AArch64/Helper.S index b7ec02f0e69f..19a2fc07f3d7 100644 --- a/Silicon/AMD/Styx/Library/AmdStyxLib/AArch64/Helper.S +++ b/Silicon/AMD/Styx/Library/AmdStyxLib/AArch64/Helper.S @@ -47,12 +47,6 @@ ASM_FUNC(ArmPlatformGetPrimaryCoreMpId) ldr w0, PrimaryCoreMpid ret -# IN None -# OUT x0 = number of cores present in the system -ASM_FUNC(ArmGetCpuCountPerCluster) - MOV32 (w0, FixedPcdGet32 (PcdCoreCount)) - ret - //UINTN //ArmPlatformIsPrimaryCore ( // IN UINTN MpId diff --git a/Silicon/AMD/Styx/Library/AmdStyxLib/Styx.c b/Silicon/AMD/Styx/Library/AmdStyxLib/Styx.c index f17a960d60ad..facfd61ca230 100644 --- a/Silicon/AMD/Styx/Library/AmdStyxLib/Styx.c +++ b/Silicon/AMD/Styx/Library/AmdStyxLib/Styx.c @@ -45,12 +45,6 @@ extern EFI_GUID gAmdStyxMpCoreInfoGuid; -UINTN -ArmGetCpuCountPerCluster ( - VOID - ); - - /** Return the current Boot Mode diff --git a/Silicon/Hisilicon/Library/ArmPlatformLibHisilicon/AArch64/Helper.S b/Silicon/Hisilicon/Library/ArmPlatformLibHisilicon/AArch64/Helper.S index 3422df279c73..74e4aeeffc31 100644 --- a/Silicon/Hisilicon/Library/ArmPlatformLibHisilicon/AArch64/Helper.S +++ b/Silicon/Hisilicon/Library/ArmPlatformLibHisilicon/AArch64/Helper.S @@ -29,12 +29,6 @@ ASM_FUNC(ArmPlatformGetPrimaryCoreMpId) MOV32 (w0, FixedPcdGet32(PcdArmPrimaryCore)) ret -# IN None -# OUT x0 = number of cores present in the system -ASM_FUNC(ArmGetCpuCountPerCluster) - MOV32 (w0, FixedPcdGet32(PcdCoreCount)) - ret - //UINTN //ArmPlatformIsPrimaryCore ( // IN UINTN MpId diff --git a/Silicon/Hisilicon/Library/ArmPlatformLibHisilicon/ArmPlatformLib.c b/Silicon/Hisilicon/Library/ArmPlatformLibHisilicon/ArmPlatformLib.c index 07ab0d1dc271..b59b9f027573 100644 --- a/Silicon/Hisilicon/Library/ArmPlatformLibHisilicon/ArmPlatformLib.c +++ b/Silicon/Hisilicon/Library/ArmPlatformLibHisilicon/ArmPlatformLib.c @@ -23,11 +23,6 @@ #include -UINTN -ArmGetCpuCountPerCluster ( - VOID - ); - extern EFI_STATUS MemInitEntry (VOID); /** -- 2.11.0