lkml.org 
[lkml]   [2022]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 0/5] cpumask: cleanup nr_cpu_ids vs nr_cpumask_bits mess
On Tue, Sep 06, 2022 at 10:55:20AM +0200, Peter Zijlstra wrote:
> 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,

Raspberry PI can. Smartphone vendors can, and probably should. Ditto
for vehicles and all embedded applications.

> which means 99% of people will not
> use this ever. Is it worth it?

I will definitely enable it for myself. Actually anyone who set NR_CPUS
to a non-default value, may also be interested in FORCE_NR_CPUS.

\
 
 \ /
  Last update: 2022-09-06 17:25    [W:0.496 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site