Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp11267imw; Mon, 4 Jul 2022 04:25:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tx52J/ersCBbjRNjFpyerBccjC2bMmyPEhBc117Bvo76EE+A1hzWpXw5hhB3N163TmdOT7 X-Received: by 2002:a17:903:240c:b0:169:52d:cd75 with SMTP id e12-20020a170903240c00b00169052dcd75mr35070476plo.12.1656933916803; Mon, 04 Jul 2022 04:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656933916; cv=none; d=google.com; s=arc-20160816; b=xuPqS8rNq8bNlbeHpOwyAik3NFJ1Op/b3XMCl5/qV9UOUnM/lubCaUgJ1y2HC+U51N jSUkBiF1yZ4VMq44pnE4UivwGnsxv79G8cZavLPgjZeZDyDOgg3nfF1a2Iy74iMOx9VY b0lVDStvxwNQkW9qV+O/V9FppsQfyf6ZXoTSUcWheNihZwcIIDB8pxH4pGDD7yO2NHhq Gd025ikDYKwqSAiYo1sRN1BWtQd5R0RvmX2SdYHasiaIOrhm4G3i4gvow7Lp/Yvglgda kHxvO7YtFTtNYibBw317laE3lpzcS+yAsf0WWQYK6ct1S8VUJZ1L21qBQRxTHN+IZdo9 NQKg== 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=NOzPQq+GhDJ50ENJAEvtKko8UEY0VBtXc59mXhSP96U=; b=wdD6Jx5Nf6RHOsQX70M/0MtBG1AKT4Z2F4V20jePA9q47VS0wb0w1ufedwkKXIxYTy rh8BmoOyIyOvAV9dqwbO/hQBs4cSmoAJrcbCvBADm1fUHIp4gkQF57oAzqtWV9OyW1Ug MYoY9AuWWKShlW+gL5fxHgVE5MoB2txi+7n1QvafrXOjjb5PYFa2n3LO5kad1JtjPkqi WxBW7wR0N9R426ZBWhJVIYa1ISSrcuoQ/FT0syGqTNirTPiBheVTmJVfMH6/4mFFL5gx 04s53pmybUWEQc5NeL7ouYeuzTqA5TqX3x4IyB3S1xP3A7D1xPepMV6WDU2DxeFhYXrU U/mw== 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 o24-20020a63f158000000b003fd97d4ed97si41332117pgk.21.2022.07.04.04.25.03; Mon, 04 Jul 2022 04:25:16 -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 S234105AbiGDKRr (ORCPT + 99 others); Mon, 4 Jul 2022 06:17:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233663AbiGDKQl (ORCPT ); Mon, 4 Jul 2022 06:16:41 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7581EDFAD for ; Mon, 4 Jul 2022 03:16:40 -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 912DED6E; Mon, 4 Jul 2022 03:16:40 -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 5E0083F792; Mon, 4 Jul 2022 03:16:38 -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, Gavin Shan Subject: [PATCH v6 12/21] arch_topology: Drop LLC identifier stash from the CPU topology Date: Mon, 4 Jul 2022 11:15:56 +0100 Message-Id: <20220704101605.1318280-13-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 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. 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 4f936c984fb6..8206990c679f 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.37.0