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::243; helo=mail-wr0-x243.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (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 CECB421B00DF6 for ; Wed, 15 Nov 2017 08:52:51 -0800 (PST) Received: by mail-wr0-x243.google.com with SMTP id u40so20999414wrf.10 for ; Wed, 15 Nov 2017 08:57:00 -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:in-reply-to:references; bh=OcELi4cKB/cUUnaHbZwAEwlZ+jZ0QJb/ED9sUoUB6yM=; b=FUgvBofASUcExPkUWeRVJboUgIs0du2X6i3vyJPnTIQ+v+LNtKiPyfa5MQUkqg9shH 6lqU2M3Pu1hoETpv53SDknDlvjWK6uZvzjJ9ceeQ7WEiQSnH2UZ1dLLmVuhEvh0yYHGC HEXWV7GnW+2PLQFqx8b9x/XpkmTii694+d7Is= 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:in-reply-to :references; bh=OcELi4cKB/cUUnaHbZwAEwlZ+jZ0QJb/ED9sUoUB6yM=; b=ENABQSb5cAauwH75A5WMFt1jpmfETOCx7ddX7ubG8Xt92bPP7phDhk7VLxPqqknLzU Eu5022tGS39/PNZ2vgNv1cnkJX/dHpOXuXf5Gy2Wf8FVAk5ktxup5KQTU+q6l0BthOjN XvC7HRMXm3PHtArQFth0CXcDwc53tD4Vie3o07j4jLvA+IN/Tgeth6Bs1V8MaybfbeSZ S5lOoQcHkfzKbLzG/INs8GocyrFY4zItuF4hkLPwgynLMap7AwlXQdfuI/YsClWRkqa2 tqoeQkoF7Rpgx9a3JzwBRjBMv/S7XHOi3V6cRUbIIqX4wmO0vUmXG9DGQtZh9BVVcJNQ zL8Q== X-Gm-Message-State: AJaThX5lkK93LtRTVdGq3MvdcbrcMTWkDR20ZEVGRo40tRJbdyQhhdCH 4ObBLzFyePhT/+ILa8Z7lc1bXGhdYmc= X-Google-Smtp-Source: AGs4zMaFJpxY872InfTlP3NRU0vl6jD25gHm3Hnrg9vpFOTmSMB7ScQtPaVa0y9Xhy/PQFNUr2iV6w== X-Received: by 10.223.167.65 with SMTP id e1mr14778656wrd.280.1510765018801; Wed, 15 Nov 2017 08:56:58 -0800 (PST) Received: from localhost.localdomain ([160.167.170.128]) by smtp.gmail.com with ESMTPSA id p15sm5673089wre.24.2017.11.15.08.56.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Nov 2017 08:56:58 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Cc: Ard Biesheuvel Date: Wed, 15 Nov 2017 16:56:23 +0000 Message-Id: <20171115165637.31118-6-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171115165637.31118-1-ard.biesheuvel@linaro.org> References: <20171115165637.31118-1-ard.biesheuvel@linaro.org> Subject: [PATCH 05/19] ArmPlatformPkg: remove ArmGetCpuCountPerCluster () from ArmPlatformLib 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: Wed, 15 Nov 2017 16:52:52 -0000 The only user of ArmPlatformLib's ArmGetCpuCountPerCluster () is itself an ArmPlatformLib implementation, i.e., ArmVExpressLibRTSM. Given that we'd prefer to get rid of ArmPlatformLib entirely, let's remove ArmGetCpuCountPerCluster () from the API as a first step. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c | 13 +++++++++++++ ArmPlatformPkg/Include/Library/ArmPlatformLib.h | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c b/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c index d8d1c9ac26dd..11dd7ff1bfb0 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c +++ b/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c @@ -21,6 +21,19 @@ #include +/** + Return the core per cluster. The method may differ per core type + + This function might be called from assembler before any stack is set. + + @return Return the core count per cluster + +**/ +UINTN +ArmGetCpuCountPerCluster ( + VOID + ); + ARM_CORE_INFO mVersatileExpressMpCoreInfoTable[] = { { // Cluster 0, Core 0 diff --git a/ArmPlatformPkg/Include/Library/ArmPlatformLib.h b/ArmPlatformPkg/Include/Library/ArmPlatformLib.h index fe3bc4bb8e6c..77561a3d05b3 100644 --- a/ArmPlatformPkg/Include/Library/ArmPlatformLib.h +++ b/ArmPlatformPkg/Include/Library/ArmPlatformLib.h @@ -41,19 +41,6 @@ typedef struct { } ARM_SYSTEM_MEMORY_REGION_DESCRIPTOR; /** - Return the core per cluster. The method may differ per core type - - This function might be called from assembler before any stack is set. - - @return Return the core count per cluster - -**/ -UINTN -ArmGetCpuCountPerCluster ( - VOID - ); - -/** Return the core position from the value of its MpId register This function returns the core position from the position 0 in the processor. -- 2.11.0