Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4178222ioo; Wed, 25 May 2022 17:29:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9TyXJqEHhQ7zp5s9Irppuvybe7GoxOHgfif2xXsGl7Qq3YZleNUh5jG06L65NEWd21WBL X-Received: by 2002:a17:90a:4414:b0:1df:9b8f:c3cc with SMTP id s20-20020a17090a441400b001df9b8fc3ccmr13244224pjg.56.1653524962995; Wed, 25 May 2022 17:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653524962; cv=none; d=google.com; s=arc-20160816; b=y6vLZ0eYpeEory+W0bqaHEqCMge/xjj2KF8vIHizVzCq/Hlqr6q02Guwmw0IsDccIq NGhHa/9E2T0JeE9SeemUJySWJX66SlonTK+jyeXSY5lo/K25KhctQMLgR3hkNie7HqIN NDAnH0Ta8RReUIb8/f97mrs4Z5brDsjACL/LwkF0cb/Au0oid3BOW7+SYMjDatUwBdMf cX7f4r1Mis6OnS7P9m7KD/srI5WkONqcXHYBzU4kXpRjx8oRB8TtVHolJazJDj29ICt8 hTAQSXWa/nIZQm7kAJly6WYsguxeNIw1azxQZG/KEKjNhoyn6urqvsvq1JpMRKtoROe2 sFmw== 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=hHG+TSzDcKCPMpNiwwASDhuXYrwjj/X5KliGkDXJIPY=; b=0twHNz87b4bgVzST9kYXq/KogV3ROq/EL3Sy0s4RV2OkUDFir6P9e7mVNeUjihjI7a 1essAFOanOCEX+9Zif8Dv7M+hSH9KDEWXymBQWtptyTWhfHp989xdJQFKHj+tMv4Hk1D jiOtQjZU3MICNS0kYP0gh3V92XFBlEd3ylVOqGQtF8OCuhlEMO+9WNyYg1sjx2qjG2UZ /KUr7wgNWCVgC6WgVTIl/BmZG8nl+5FA3BVThSyaC9TwMPn25LUDMqjSU7P8eCBK/T05 CpEsRKC2iD6N0mkRD7B2NvPnYnOzYxaVKFED/crdH9oXB2wTx+fnuzmpIEzrd15EB8np zsYA== 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 ml12-20020a17090b360c00b001e056b30facsi299383pjb.161.2022.05.25.17.29.11; Wed, 25 May 2022 17:29:22 -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 S233608AbiEYIPc (ORCPT + 99 others); Wed, 25 May 2022 04:15:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237187AbiEYIOy (ORCPT ); Wed, 25 May 2022 04:14:54 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C8D6E87214 for ; Wed, 25 May 2022 01:14:49 -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 56AE123A; Wed, 25 May 2022 01:14:49 -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 7C2DC3F73D; Wed, 25 May 2022 01:14:47 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org Cc: Sudeep Holla , Atish Patra , Atish Patra , Vincent Guittot , Morten Rasmussen , Dietmar Eggemann , Qing Wang , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, Rob Herring Subject: [PATCH v3 08/16] arm64: topology: Remove redundant setting of llc_id in CPU topology Date: Wed, 25 May 2022 09:14:08 +0100 Message-Id: <20220525081416.3306043-9-sudeep.holla@arm.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220525081416.3306043-8-sudeep.holla@arm.com> References: <20220525081416.3306043-1-sudeep.holla@arm.com> <20220525081416.3306043-2-sudeep.holla@arm.com> <20220525081416.3306043-3-sudeep.holla@arm.com> <20220525081416.3306043-4-sudeep.holla@arm.com> <20220525081416.3306043-5-sudeep.holla@arm.com> <20220525081416.3306043-6-sudeep.holla@arm.com> <20220525081416.3306043-7-sudeep.holla@arm.com> <20220525081416.3306043-8-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_PASS,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. 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