Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3150958iog; Mon, 27 Jun 2022 10:10:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vPRSYkVY5smfYbBCKWHdZ9Kdyw8i1qwUgZZtUGKfkvy9hlRXeR/D1gmYqj+ZEP48zszCrN X-Received: by 2002:a17:902:7686:b0:168:de55:8c45 with SMTP id m6-20020a170902768600b00168de558c45mr15828647pll.129.1656349807949; Mon, 27 Jun 2022 10:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656349807; cv=none; d=google.com; s=arc-20160816; b=IrbBkRTC9qhsEmPXy274p/U88xAxpSejP9L1lJXqLwJ0NfHX0yQqDX2ewoIo1uYeQD wPlVrMW5D9KjWGSnzBgVIPc6qCB05OBz1pfCA7d6cEc9IF5CyMTOrJfvc4322JVUKMX+ tiPd0G+Vm8PnZPafTdnfwos1WihJ5rMgon/1Od2z0h8YK5mBy7kZvbfLZNf4zALQlr8e hWgw19RT6EVlf48Y654GhVGzHMo2BBa/NOs+KjZuswgCYrC0FCbQn6c4/4Zuj9DVeB40 RjLtj6Zx1Yc9JeKt6U40UPMzc8w8UkqKD8qjaAmscSyJWrPrtLK4bF5tx3hlpw5b+WXh xHJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=gp9wAc+IARiM9Hjw00yS0UVHc2UIVDRp6sULCaRbWU4=; b=yz6fMVGm7s8StVWLKgMF7SgpKRYzDzqPRX+sSbKYgZ6ZQXywE4BIU3XSY+Rsmt7ubQ 27vkjGeVxiCtwp2IevGu2586m0SnsZ22cdT5ZE/IBOV7gH7NAEZwZ1Wg93SF6+QXX6oM aaRV3vsBOtLBUYkQj/s/k18jbBWDjTGQYY65vzlFoL5soyqPMloMdoFr2wS1nPljM2IQ plG+kzR8tnB4SSeSB5hAtR3eHcxAq+OBYAuHdGMwqHYQEY7IcNjdoqppd4kfh6ZaVfs6 Qu1SyI0G1rwR8UY1DtAugkNxFEzUwoVCJtAzOxJMfe6HkojBgtb7qvRmDVhkqOkMNKTs /JJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 18-20020a630112000000b00410702fefc1si2656203pgb.542.2022.06.27.10.09.54; Mon, 27 Jun 2022 10:10:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239620AbiF0Qvl (ORCPT + 99 others); Mon, 27 Jun 2022 12:51:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239539AbiF0QvU (ORCPT ); Mon, 27 Jun 2022 12:51:20 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D47BF13D2D for ; Mon, 27 Jun 2022 09:51:17 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D9209175A; Mon, 27 Jun 2022 09:51:17 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AADE33F792; Mon, 27 Jun 2022 09:51:15 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org Cc: Sudeep Holla , Greg Kroah-Hartman , Atish Patra , Atish Patra , Vincent Guittot , Dietmar Eggemann , Qing Wang , Rob Herring , "Rafael J . Wysocki" , Ionela Voinescu , Pierre Gondois , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, Will Deacon , Catalin Marinas , Gavin Shan Subject: [PATCH v5 10/19] arm64: topology: Remove redundant setting of llc_id in CPU topology Date: Mon, 27 Jun 2022 17:50:38 +0100 Message-Id: <20220627165047.336669-11-sudeep.holla@arm.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627165047.336669-1-sudeep.holla@arm.com> References: <20220627165047.336669-1-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the cacheinfo LLC information is used directly in arch_topology, there is no need to parse and fetch the LLC ID information only for ACPI systems. Just drop the redundant parsing and setting of llc_id in CPU topology from ACPI PPTT. Link: https://lore.kernel.org/r/20220621192034.3332546-11-sudeep.holla@arm.com Cc: Will Deacon Cc: Catalin Marinas Tested-by: Ionela Voinescu Reviewed-by: Gavin Shan Acked-by: Catalin Marinas Signed-off-by: Sudeep Holla --- arch/arm64/kernel/topology.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c index 9ab78ad826e2..869ffc4d4484 100644 --- a/arch/arm64/kernel/topology.c +++ b/arch/arm64/kernel/topology.c @@ -89,8 +89,6 @@ int __init parse_acpi_topology(void) return 0; for_each_possible_cpu(cpu) { - int i, cache_id; - topology_id = find_acpi_cpu_topology(cpu, 0); if (topology_id < 0) return topology_id; @@ -107,18 +105,6 @@ int __init parse_acpi_topology(void) cpu_topology[cpu].cluster_id = topology_id; topology_id = find_acpi_cpu_topology_package(cpu); cpu_topology[cpu].package_id = topology_id; - - i = acpi_find_last_cache_level(cpu); - - if (i > 0) { - /* - * this is the only part of cpu_topology that has - * a direct relationship with the cache topology - */ - cache_id = find_acpi_cpu_cache_topology(cpu, i); - if (cache_id > 0) - cpu_topology[cpu].llc_id = cache_id; - } } return 0; -- 2.36.1