From patchwork Tue May 10 12:11:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 67444 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp2092019qge; Tue, 10 May 2016 05:14:45 -0700 (PDT) X-Received: by 10.140.165.150 with SMTP id l144mr42593402qhl.82.1462882485821; Tue, 10 May 2016 05:14:45 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o3si1176668qko.198.2016.05.10.05.14.45; Tue, 10 May 2016 05:14:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7713161657; Tue, 10 May 2016 12:14:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 692D561649; Tue, 10 May 2016 12:13:07 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id E005861651; Tue, 10 May 2016 12:13:01 +0000 (UTC) Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by lists.linaro.org (Postfix) with ESMTPS id 1D53361652 for ; Tue, 10 May 2016 12:12:14 +0000 (UTC) Received: by mail-wm0-f44.google.com with SMTP id g17so23982833wme.1 for ; Tue, 10 May 2016 05:12:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9+03RhXUHEilNnDAh/XYRnc+3Cwy33QKc/pkOGghYSo=; b=fr+Sin+jdYU0GV2MZjjzTyojtF8e4955gSY9sxMJPMUa+SaMTbbwwol7OAHR41F9/G 2NGjXeXPkqvPtvQPzFX7eAKawm9m4Zg5qOhTdVh0VqPnX2hTqw3r7AwE6h8EiXOV9t64 zWDpV/RUnRJRT2ThJqaeN0jtC//kbD4erSJ9pCIrGONDbNqa5K7/RSLZA3c1VHSTAecA 690JUNzS0cV0Iw6iHF1qA/SHa9AgRvbnN8uY0ejbyluRl4shbFqii4pl7JycOvfa4Ot6 Lh6zVlRvXmmsjqSm0HFPAqMRTx6sskVK7z3a111noTiXidNqZuf5NClYjY/hm/gKDZKK R27Q== X-Gm-Message-State: AOPr4FUgMR2AhXNV/KCi3if7V17UjrqBVNYICZktA9mta++eBeAL1MJtPp36o4V7GewTZfJpIoA= X-Received: by 10.28.137.210 with SMTP id l201mr11912470wmd.31.1462882333250; Tue, 10 May 2016 05:12:13 -0700 (PDT) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id m20sm2623084wma.23.2016.05.10.05.12.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 May 2016 05:12:12 -0700 (PDT) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org Date: Tue, 10 May 2016 14:11:47 +0200 Message-Id: <1462882313-7637-9-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1462882313-7637-1-git-send-email-ard.biesheuvel@linaro.org> References: <1462882313-7637-1-git-send-email-ard.biesheuvel@linaro.org> Cc: leo.duran@amd.com Subject: [Linaro-uefi] [PATCH 08/14] Platforms/AMD/AmdStyxHelperLib: remove AmdStyxGetArmProcessorTable () function X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" This function is no longer used, and returns a UEFI configuration table that we would like to get rid of. So remove it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- Platforms/AMD/Styx/Common/AmdStyxHelperLib.h | 5 ----- Platforms/AMD/Styx/Library/AmdStyxHelperLib/AmdStyxHelperLib.c | 18 ------------------ 2 files changed, 23 deletions(-) diff --git a/Platforms/AMD/Styx/Common/AmdStyxHelperLib.h b/Platforms/AMD/Styx/Common/AmdStyxHelperLib.h index c4598fe7d108..640aba317a69 100644 --- a/Platforms/AMD/Styx/Common/AmdStyxHelperLib.h +++ b/Platforms/AMD/Styx/Common/AmdStyxHelperLib.h @@ -34,11 +34,6 @@ AmdStyxGetPmuSpiFromMpId ( UINT32 *PmuSpi ); -ARM_PROCESSOR_TABLE * -AmdStyxGetArmProcessorTable( - VOID - ); - ARM_CORE_INFO * AmdStyxGetArmCoreInfoTable ( OUT UINTN *NumEntries diff --git a/Platforms/AMD/Styx/Library/AmdStyxHelperLib/AmdStyxHelperLib.c b/Platforms/AMD/Styx/Library/AmdStyxHelperLib/AmdStyxHelperLib.c index 6e0ed35278e4..25fd0e4b12a4 100644 --- a/Platforms/AMD/Styx/Library/AmdStyxHelperLib/AmdStyxHelperLib.c +++ b/Platforms/AMD/Styx/Library/AmdStyxHelperLib/AmdStyxHelperLib.c @@ -63,24 +63,6 @@ AmdStyxGetPmuSpiFromMpId ( return EFI_INVALID_PARAMETER; } - -ARM_PROCESSOR_TABLE * -AmdStyxGetArmProcessorTable( - VOID - ) -{ - UINTN Index; - - for (Index=0; Index < gST->NumberOfTableEntries; Index++) { - // Check for correct GUID type - if (CompareGuid (&gArmMpCoreInfoGuid, &(gST->ConfigurationTable[Index].VendorGuid))) { - return (ARM_PROCESSOR_TABLE *)gST->ConfigurationTable[Index].VendorTable; - } - } - - return NULL; -} - ARM_CORE_INFO * AmdStyxGetArmCoreInfoTable ( OUT UINTN *NumEntries