Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1047931iob; Fri, 13 May 2022 21:02:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXIkgxZLyVQV7iFQLACgS2DttxNaWAmioUuIaboDgK4S0/DCq/X1eEEdHctoRcJqfoOAYc X-Received: by 2002:a05:600c:a4b:b0:37b:ea2b:5583 with SMTP id c11-20020a05600c0a4b00b0037bea2b5583mr17964833wmq.139.1652500930885; Fri, 13 May 2022 21:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652500930; cv=none; d=google.com; s=arc-20160816; b=Duj7recueaYmz7/x964aL7mDB+oIb0H2LveDGM24eokA3VuvavR0TXmsIGxhAiwG6M YIbHC6Xc8KjdetG8EI10XpJphqxNGJsiNFiy8cOyIVxXsQdx4vgJf+KT0lX1VNBr0WuQ uevffnkzweDpC3pjhuB0W/XHLX0Vn7ujjcZjvcmoCmogWXk/eAiY2mwxm4Oi1t+8unsw sGR8jS7XOgxiv/Dus/4N/MBSuNwYqqeyG2Zo5cHRINKQcMlmtXVKUxdkRukhpNBDuLGv 6VsI3YGHNQSu0x70pxR8FCyQKDJT9pu2tgtcu7mDNnijLffxPf3wkRwvvVDOl9LRy7IA hoyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=jHkye+DNyyZVwqbPzFcaivPgTcbB2H1K0M6v9OxqaU8=; b=fd2VVozNRCrj0g4evxqAfYxU+MZ6dVY30vbgfHekJRf2ykwZT+ZcJDjB3DG8CtiytX F8ngBxzh0t7xPkxImKKPHYYPi2OvW7dmYvKwuyokYV2qUXlJE7n8HsN/0T2QYAcUggCd 0mA7cNmeOJ7gNVvxYGt+XfufxgTxa5Kej92LO7Hb0WTxi0HwGKT9MzG3qvvrcwJKD6b8 Zg+4jVMG5wzaeEeencAvBOco0H+CjpgzIUUgVbJc0v750YdABrt5Tkzj3uidlG9e1LXa Zg71X76auxuD6Z5K9Xl7+isZ4OtZJrZ9rL6+qFz+2KsciPBnWR826NVg3PB3uPyFcjb4 NcXQ== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c12-20020a5d4ccc000000b0020c70d07773si3328756wrt.663.2022.05.13.21.02.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:02:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6AFB14A975A; Fri, 13 May 2022 17:33:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379148AbiEMJs6 (ORCPT + 99 others); Fri, 13 May 2022 05:48:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379143AbiEMJsw (ORCPT ); Fri, 13 May 2022 05:48:52 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C9C42268EB5 for ; Fri, 13 May 2022 02:48:50 -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 9C7DE143D; Fri, 13 May 2022 02:48:50 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 891E83F73D; Fri, 13 May 2022 02:48:49 -0700 (PDT) Message-ID: <39be28ea-1645-30c3-316e-87a43b8738a8@arm.com> Date: Fri, 13 May 2022 11:48:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] topology: Remove unused cpu_cluster_mask() Content-Language: en-US From: Dietmar Eggemann To: Peter Zijlstra , Greg Kroah-Hartman , Heiko Carstens , Barry Song <21cnbao@gmail.com> Cc: linux-kernel@vger.kernel.org References: <20220513093433.425163-1-dietmar.eggemann@arm.com> In-Reply-To: <20220513093433.425163-1-dietmar.eggemann@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 - Barry Song bounced + Barry Song <21cnbao@gmail.com> On 13/05/2022 11:34, Dietmar Eggemann wrote: > default_topology[] uses cpu_clustergroup_mask() for the CLS level > (guarded by CONFIG_SCHED_CLUSTER) which is currently provided by x86 > (arch/x86/kernel/smpboot.c) and arm64 (drivers/base/arch_topology.c). > > Fixes: 778c558f49a2c ("sched: Add cluster scheduler level in core and > related Kconfig for ARM64") > > Signed-off-by: Dietmar Eggemann > --- > include/linux/topology.h | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/include/linux/topology.h b/include/linux/topology.h > index f19bc3626297..4564faafd0e1 100644 > --- a/include/linux/topology.h > +++ b/include/linux/topology.h > @@ -240,13 +240,6 @@ static inline const struct cpumask *cpu_smt_mask(int cpu) > } > #endif > > -#if defined(CONFIG_SCHED_CLUSTER) && !defined(cpu_cluster_mask) > -static inline const struct cpumask *cpu_cluster_mask(int cpu) > -{ > - return topology_cluster_cpumask(cpu); > -} > -#endif > - > static inline const struct cpumask *cpu_cpu_mask(int cpu) > { > return cpumask_of_node(cpu_to_node(cpu));