Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3137989iog; Mon, 27 Jun 2022 09:54:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sBFqyiNZZHsYGTC7rTqXjlMm/aCegsCFx79cYnAIyliB6IfdsiURsXJmOXVPKblJuHLq++ X-Received: by 2002:a17:906:51db:b0:722:ea9b:ff9e with SMTP id v27-20020a17090651db00b00722ea9bff9emr13940814ejk.16.1656348888835; Mon, 27 Jun 2022 09:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656348888; cv=none; d=google.com; s=arc-20160816; b=PMEDmvhXTg6VgtOvfXdgxHRMB4ypuxOQh14N4kRk0mzlbwwsIlrIiIDLVTbErIu4x6 Lxvh9DICHdGIHmAlztNXn90r158YOJlPDttxak40UzW/OG4hZ5HuECCiQ29Z5nCmXytS xByeIWxPhF3TWMT+ggR69t/TtYpAHQUCLBB1sw94f8ih//vaUcX6HZVLjwMZHH+gpBdC NuWCp4ENCqoQZo4jlWsW0xqx3uSM24tAFQpba6mT2eRKVd9zKYliv4F55xd0cjg8sn7t KssQfNbJ0plQzEqooJUsp2k20G0N66dTlyc5LRsl4IlK1eKLpcDIb3ULntohyMwr5OW6 RUUw== 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=Nl2LjUYKs814nBYzkrQo5BmhvqNlVFOwKGlMienbD1Q=; b=bRqrA3ujSw8H/rr9Zv946qY5mmuCy7rJr58ejSiS6fo5zL0ZTeqWxvfycHyn6ru3cL uYYT+O6FzX3GaC2nJHBTpjWArIt21LEsuA/SZETbAA5thoUtYfG7qzaPoHCDEPzmbz4W CdQeQtsksdku2z3L188LJJtprXjmuWfCYFmMPVcKgCRJdnlvGgc5jJmhHSPoZwXhrI2H KGMrlN4uFX/NH7m73EPia9wUgbYWD2XjgromPL+qCSUkatqy0rRgJTIJIINNnv9GxkBa IDz3u57T6PmlNg4ieiKjOIIre/8KRfa2erzFpD0by9mQlen1Q8ksNjV9cuJfmWWcBzxB cUPw== 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 s16-20020a056402521000b004356fa406aesi16027099edd.37.2022.06.27.09.54.24; Mon, 27 Jun 2022 09:54:48 -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 S239627AbiF0Qvo (ORCPT + 99 others); Mon, 27 Jun 2022 12:51:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238863AbiF0QvV (ORCPT ); Mon, 27 Jun 2022 12:51:21 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CD9681114F for ; Mon, 27 Jun 2022 09:51:19 -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 D24581758; Mon, 27 Jun 2022 09:51:19 -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 D64E43F792; Mon, 27 Jun 2022 09:51:17 -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, Gavin Shan Subject: [PATCH v5 11/19] arch_topology: Drop LLC identifier stash from the CPU topology Date: Mon, 27 Jun 2022 17:50:39 +0100 Message-Id: <20220627165047.336669-12-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 store the LLC ID information only for ACPI systems in the CPU topology. Remove the redundant LLC ID from the generic CPU arch_topology information. Link: https://lore.kernel.org/r/20220621192034.3332546-12-sudeep.holla@arm.com Tested-by: Ionela Voinescu Reviewed-by: Gavin Shan Signed-off-by: Sudeep Holla --- drivers/base/arch_topology.c | 1 - include/linux/arch_topology.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index c314c7064397..b63cc52e12ce 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -752,7 +752,6 @@ void __init reset_cpu_topology(void) cpu_topo->core_id = -1; cpu_topo->cluster_id = -1; cpu_topo->package_id = -1; - cpu_topo->llc_id = -1; clear_cpu_topology(cpu); } diff --git a/include/linux/arch_topology.h b/include/linux/arch_topology.h index 58cbe18d825c..a07b510e7dc5 100644 --- a/include/linux/arch_topology.h +++ b/include/linux/arch_topology.h @@ -68,7 +68,6 @@ struct cpu_topology { int core_id; int cluster_id; int package_id; - int llc_id; cpumask_t thread_sibling; cpumask_t core_sibling; cpumask_t cluster_sibling; -- 2.36.1