From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 560FEECAAA1 for ; Tue, 6 Sep 2022 08:55:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233805AbiIFIzg (ORCPT ); Tue, 6 Sep 2022 04:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232511AbiIFIzb (ORCPT ); Tue, 6 Sep 2022 04:55:31 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E7FD1E3D3 for ; Tue, 6 Sep 2022 01:55:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cnDH3aGYFESl5uaJdCFGIgiBiKllv0MgR28MTTe0OcE=; b=dzthl0OYAiTACcBY2O78kHqySp jh4n0xKIRjuI9IWA5k/jeZrfulwuZyAW+wav51BGFjByXMrFmfUBmZZeyqQT+0+9bwliK2lKYf67R rgEB8uZhfFWjQwok86IxZ5FJJDglYENieMEw+xTUgxVudkwnKscv+ePyRRvbsyU1VPxUp75oK4qEl qQGSakOvXtx7yUkDIo07g6AbBd579ae94sGewdyvfrXcxlJWK1pMrKo8X4d1iy+NHZvkBeemqNOGu EdN8drIWrZgPEPoxMCQ9TUsTwX/MjsrfkV2EULty/7OeSdV6hyiEZioeDnmB+M/8SXqQGJ06Sne1I 1saYuSlw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVUMc-00AFO9-Cr; Tue, 06 Sep 2022 08:55:22 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 6E7E6300244; Tue, 6 Sep 2022 10:55:20 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5F1A1209D2D1D; Tue, 6 Sep 2022 10:55:20 +0200 (CEST) Date: Tue, 6 Sep 2022 10:55:20 +0200 From: Peter Zijlstra To: Yury Norov Cc: linux-kernel@vger.kernel.org, Andy Shevchenko , Rasmus Villemoes , Andrew Morton , Stephen Rothwell , Thomas Gleixner , "Paul E . McKenney" , Vlastimil Babka , Dmitry Vyukov , Valentin Schneider , Sander Vanheule , Alexey Klimov , Eric Biggers Subject: Re: [PATCH v2 0/5] cpumask: cleanup nr_cpu_ids vs nr_cpumask_bits mess Message-ID: References: <20220905230820.3295223-1-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220905230820.3295223-1-yury.norov@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 05, 2022 at 04:08:15PM -0700, Yury Norov wrote: > cpumask subsystem uses nr_cpu_ids and nr_cpumask_bits interchangeably > despite that the variables have different meaning and purpose. It makes > some cpumask functions broken. > > This series cleans that mess and adds new config FORCE_NR_CPUS that > allows to optimize cpumask subsystem if the number of CPUs is known > at compile-time. Who will use this? Distro's can't, which means 99% of people will not use this ever. Is it worth it?