From patchwork Wed Nov 15 16:56:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 118982 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4546821qgn; Wed, 15 Nov 2017 08:57:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMbHbxRHfXK2AA9ysacqLa9CIxNgnvRHRVPUKSUxFBzJJNNexFA4sHRWIoNip1pqCOq8uIpo X-Received: by 10.84.197.3 with SMTP id m3mr16290981pld.107.1510765029999; Wed, 15 Nov 2017 08:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510765029; cv=none; d=google.com; s=arc-20160816; b=Py5a0uaDmknba5YdApseRm8m4ZtZCNMjNYXtGFmWTJwpsqlBrm8SsPK5HSoLdIGktz caOkxqc4Jk4+0BOHcAO+ZYdEIz1aSXpPYYwcUqDijeZI7cRg088HC67dgL0nuf7znUb+ BoYrHYumDehmEIbZJXSofXDz2QbmwKf9lU7p3kAV4is3TVi08ejtbGQhyUBJ/mC96jc/ mv+K1t6OGD3djLek8sJKzCETfaYQfpLhjZM7XaRz0vh8ma1JM1uINMIwV/OqmFZPzz9M lRjLWqz/G4pKXFJ0BxDIRte6aIsl8ucaLy+cuMskpfycyqY1i7CBWLm3m2EMHfYTvlHX 9OsA== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=E9x5qMLohsNd+uTecV95V870i515xV5y8xJPTq4r7EU=; b=KVhvlqc6DpMvfJU1qY4IDtpQTQg1JCkTrtP5TM919TMcDl7FKbwHEkdhHtXn6gvar0 wcyxJ2zEMRwe/5pIC5X66Qv7+Cu3RXe9UxzsUo/VJ5AFgVkeWuCxLNUihU98Jz2Iea1f KbNCBcArAhwIM4ueSpKy/iUkaHNsdthUpYYTqjzrKKvOyz4hg4aRRE8k0BitgyFBZW8x hyYVbQEec9sum1dnKnMyXVeLIhANHbygV+s+SFEO5JFf+BvLQPeyuLUPF11x+6yoj38F i2DdcaqN0Q6cX11HV04nrEGBTppQ35mmUzL2JJWW56jfWPYJD26ciFJfjgczi/XY2qlg /j2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FUgvBofA; 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 c80si20224648pfb.238.2017.11.15.08.57.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Nov 2017 08:57:09 -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=FUgvBofA; 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 D291A21B00DF6; Wed, 15 Nov 2017 08:52:53 -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::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-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 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: [edk2] [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: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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.