From patchwork Tue Nov 28 17:35:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 119896 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1999628qgn; Tue, 28 Nov 2017 09:35:39 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ+MHo4uYhuK/x97GiKWPEQYnNRPIWUPWWzpJ4n20kQ/mgQaVY8A1HzXVNJ2iPRu8KMljHC X-Received: by 10.159.197.1 with SMTP id bj1mr6705546plb.118.1511890539794; Tue, 28 Nov 2017 09:35:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511890539; cv=none; d=google.com; s=arc-20160816; b=PG8wYA6s/o3kIfSW0WrgLaQ6oeyv7jnELiJjSdRiRtIXBjOhi1QUVKNlHQdUA9TxSs 44RTZDUSqjT3W20xHs5hrzcwUjANZs0AQIpyUDvhTNKDLMX0inXQF7obyGT7XS9dS+Pj 8HoX0bd60CsenCnYpXYTrnLqNQKlhvePSOSKAX06vPG9Md/pkyC4L3HJhRehNa1MSOWD 050KOEJxtzuTp9yFstJxHBwuPczwCab5dO0+txFkBx9C9inzb53kYEG4cbDBkegFP7Ip 9dYgVQnM/jcWW8HIls8dht0jVaNNmSI4NbSTLF0CBLZk8jXMrWL0DEwYpqAlSdB7cSV+ /DBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=dLBD6opR41VtsVBL8YeZ3qQKea0xQkqUobqaqc0a1bQ=; b=lyCCKcS2bOWyTYLWpmWHnhVZqmyR+ybF+xD7TzlMtXlEWSvDtCR7H9i9fs0dW0wxz9 4+VX4cmf0JlcF8PbBwxBYj4mLESIzwkBdZY7/OsQHF0omHTnNKsP+3LFsjaQAiS7S5LK Ci/xMnE9RNLuTTADkpGDnZDu419kwt/xXLFJ2gOdc2itOp7oUmHLXdTWCFDc/GgJETf5 xmpSXOWLYHp7Il5cMztGIXX4JiQJ2t8ww0MvDCS9St66n1Bx0lxMaOQP8YSMB1qKcCsk l5KbD2+GgescRls1O21jW2PSRlbeMt3K1K3BHn7BFfv8TGKaVRc7PXL+H1F7K5MtLcbe baAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ibOewMBa; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id 9si25929628pla.183.2017.11.28.09.35.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Nov 2017 09:35:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ibOewMBa; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 79039221660DE; Tue, 28 Nov 2017 09:31:15 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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-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 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: [edk2] [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: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm 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); /**