Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1447156imk; Mon, 4 Jul 2022 03:19:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vpFOkjlfcT/bLjnLAm/cDZl/iX/q4YY4RjdOe5xFSbb0idJezM92mGxfB9sa4KNkooABUF X-Received: by 2002:a05:6a00:174b:b0:525:4eea:8ff2 with SMTP id j11-20020a056a00174b00b005254eea8ff2mr34649245pfc.23.1656929957877; Mon, 04 Jul 2022 03:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656929957; cv=none; d=google.com; s=arc-20160816; b=IYqYqBg0jnCeTw8qgdZ/Swfn3NxqYcxP23GVge++oTaYbUz1ibxTux6eNTnslJEiWC OE1YwtwnHswLbA5Ux+QwCRpg7ZWtZrsXJbiDaUY5/5tdw68W9GueQoYURMjcLAg6sJv2 7s10kj1SMMt14qxdI+fsFx9g5IFXW0WOqmdbDrxDQcS5VRZnofjWUwqAf80eh8h4XZVs FhrUfSc4aH7/WiHmzBCVzM/iJK/U5QWn4WbsyGsMUZQkre/Gxpsvhh2h1BIF0BoiJN0y 9Ybl9uSatNa+XQsR6hth8HpbUVBCWC7vvUS6AcY8vxZzPsUVzXFaU3owyMBN4f96YH28 Ks7A== 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=hf5tXwjUUQDEqtikUfiXnoq6LQ6wN+yxhl0NX+kQusU=; b=ESwAk/n0ZakgrmpKh2RmAkTCvOm7mLUOOTcLxQgNnUYFwkGXGUl/j85suBmHyJmjuq sVjqgpVbSUmNNw9Yn/OnHdOuVwtGRyLkTSEEVOy0aHt6ln7M+fOGijzFkk28ydXpVP+M MVP2xhHXjEZy9xLJoUWiT1KQSICnVLnJrDrWR8ENbWyMERfKN+Dg8vB/vdo6inWqXou3 pO9nssvF46xoCydh325lJylmeZec0D0xl7w4ChsEAeQUNpk8fqB7gqmPXo3LRNP7lcg5 BhGEhaih7gz1TyYx8gG6KT/gEQNsNetpieqZhBM0yo7vIzBNiA0e/GLdrKU3THPQCbYY 6sUA== 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 g128-20020a636b86000000b004116434c8b1si24272012pgc.389.2022.07.04.03.19.06; Mon, 04 Jul 2022 03:19:17 -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 S233872AbiGDKRl (ORCPT + 99 others); Mon, 4 Jul 2022 06:17:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233062AbiGDKQj (ORCPT ); Mon, 4 Jul 2022 06:16:39 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 60C23DF05 for ; Mon, 4 Jul 2022 03:16:38 -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 73D7023A; Mon, 4 Jul 2022 03:16:38 -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 132D33F792; Mon, 4 Jul 2022 03:16:35 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org, Greg Kroah-Hartman Cc: Sudeep Holla , conor.dooley@microchip.com, valentina.fernandezalanis@microchip.com, 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 v6 11/21] arm64: topology: Remove redundant setting of llc_id in CPU topology Date: Mon, 4 Jul 2022 11:15:55 +0100 Message-Id: <20220704101605.1318280-12-sudeep.holla@arm.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220704101605.1318280-1-sudeep.holla@arm.com> References: <20220704101605.1318280-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. 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.37.0