Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2815609iob; Mon, 16 May 2022 06:55:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynRWIMmPhS9CozgUge3ls9Ygf4uGTyy01oe+AT2glkQ4/xmdeKQLoULNy3FE9i8BNbbYVU X-Received: by 2002:a05:6402:d0a:b0:425:d455:452 with SMTP id eb10-20020a0564020d0a00b00425d4550452mr13226198edb.259.1652709331295; Mon, 16 May 2022 06:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652709331; cv=none; d=google.com; s=arc-20160816; b=KMiVtGBhqx7NLjRiTqGW/kbTk6kQ4lv28TvJYKsZwXkJKbuH6H0bl9qQ8MH1NfUOta Fd8Wbm1kCsVN7wGNIpHRU6YWl9DDllzf8JZ9Zl4RJWLnrNwSTas7fhySXFE2ROX/+GdR QsdhLRPF7DWUEuoATkJzeGmnZozF3Vumf9y7YnrIehZpaiOvd8ORF/w9/KAimOIcG2xS fvIASh6hVSgvh52c3cevSyrrH0oCavKKn6qmgfxoPSdIMZWO90ddNEp1ejMCcv5owJhY ptJBEKDuLTI1T2SyTXh1lW2jFfQMjWYM2BMnEZf37pTIJDRyfmnXPdZOyeiJoRjRf8Nh jzsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SH+DM8gWRShDh4xAKJ9hq9ZGV6WzwS40V7Ikj9JGnTU=; b=vuoipuJvu5wN0ooQ4pKEaX4ennLaqVq/VIeOOSUMRTNdoC4t2VCacdZbC2471NH3Mo m2+oRi77fZxsa0nTou5WOymrqQAyj2T+B6CQEe9SeLby/Neg53RvuwtJUVwl5Zyx+cL/ vzsgIRTzaxGcbyMi2GLroLnL69aO+4+eTZ1cSMBkYU/fp/HFtgRGELx05lLZw/oLkdxh wmUw51c4h5l6rw/5d9mn2k1lWIaenXhTQuqrUmljczLwxfSuhqUwP+uXdUo/JmrUDEV7 Q+eX9rqWFrP5SkWKdHSf0/eZpSyi+jXhgQY8URoXF9YKneYNUhhi7MUpV8emeeRlJ4sq leUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aKJMP7FF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a50934e000000b00427d0e5c909si9231657eda.414.2022.05.16.06.55.05; Mon, 16 May 2022 06:55:31 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aKJMP7FF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240564AbiEPG77 (ORCPT + 99 others); Mon, 16 May 2022 02:59:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236707AbiEPG75 (ORCPT ); Mon, 16 May 2022 02:59:57 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3146ADFA5 for ; Sun, 15 May 2022 23:59:56 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id g6so26773292ejw.1 for ; Sun, 15 May 2022 23:59:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SH+DM8gWRShDh4xAKJ9hq9ZGV6WzwS40V7Ikj9JGnTU=; b=aKJMP7FFPV4UsmM8hjbALJW38MNT+IhNk/fyIk0k+DzD6WAfnAvr5bgKwW5D1tTQWt OhKgJhsvN9hDqnwoSO8fE/M5y3CxnnfBMfWuuOkU5N9dypEbs9+s9aElvnwnFn46Z6EN 1K+gRZq1tUfcB2BiIANmYaWh5IIk08T+yTMaJwn9QI5RX/K8IQplq2XSzrnoZ8K3dpXx VnqUowRVTSH9v0IbVo6nSaooCYxuXagd4qtjAQlhdQTrVi4MfmWmPXduazz4hSf6jFm0 KH0P1TGu44ipz1q1VHAIP1ciG/k9ijhoWxlMacA7KvWp+P5qBc0lskRwzNjcaQa+LBA4 3sZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SH+DM8gWRShDh4xAKJ9hq9ZGV6WzwS40V7Ikj9JGnTU=; b=CsA0sKPqT2gpmZtob7zCc+OiU2BB0TJGRps62RQWGqpBD1U6QW02f2IDMRCxJDV/GI /iEPYi+KUshPhoKGC3ES6DDL+lD3hWRQPrwSklCT5eiU0vU3Hw5AjwnXXyOETQCs1Mgl NWVA/UOYRw9itgfKZ+Ll4QL/H1i4W93w8MgAFZpH17HhlelYPPCdiKV/MK1m9ZjQfNWT RnXqrDpB+HPqtdHnVYyqwGiuuPLfNOUaIw9w1WxJMCsXX2vMFefrxWxK8MG9rlQBq9sZ +14VT/NAfvzMwsCUZdTMekIdrN88jUvPNKRVFOzc1hHyHSXrCyCH+RBL5LiN6CrEp60Y oF8g== X-Gm-Message-State: AOAM532K7PC0OpCuPvh8hJutSn5eLT5aJ5o6/zenDopuB/X47YZanJ/u E2b/LWsHGeQUIhJpHhECRfvq6EP5eAR61I0J6iIKYpppnCQ= X-Received: by 2002:a17:906:7309:b0:6f5:ea1:afa with SMTP id di9-20020a170906730900b006f50ea10afamr13666909ejc.170.1652684394688; Sun, 15 May 2022 23:59:54 -0700 (PDT) MIME-Version: 1.0 References: <20220513093433.425163-1-dietmar.eggemann@arm.com> <39be28ea-1645-30c3-316e-87a43b8738a8@arm.com> In-Reply-To: <39be28ea-1645-30c3-316e-87a43b8738a8@arm.com> From: Barry Song <21cnbao@gmail.com> Date: Mon, 16 May 2022 18:59:43 +1200 Message-ID: Subject: Re: [PATCH] topology: Remove unused cpu_cluster_mask() To: Dietmar Eggemann Cc: Peter Zijlstra , Greg Kroah-Hartman , Heiko Carstens , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Fri, May 13, 2022 at 9:48 PM Dietmar Eggemann wrote: > > - 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 > > - Acked-by: Barry Song I agree there are no users right now. I probably wrote it like cpu_smt_mask() and used it in kernel/sched for the wake_affine patch but forgot to remove it while sending patches without wake_affine. > > static inline const struct cpumask *cpu_cpu_mask(int cpu) > > { > > return cpumask_of_node(cpu_to_node(cpu)); > Thanks Barry