On Mon, 2022-03-14 at 22:10 +0100, Richard Weinberger wrote: > ----- Ursprüngliche Mail ----- > > Von: "Florian Bezdeka" <florian.bezd...@siemens.com> > > I agree, BITS_PER_LONG seems wrong. But couldn't it be too small as > > well? It depends on NR_CPUS which might be > BITS_PER_LONG. > > Hmm, nr_cpumask_bits is defined as: > > #ifdef CONFIG_CPUMASK_OFFSTACK > /* Assuming NR_CPUS is huge, a runtime limit is more efficient. Also, > * not all bits may be allocated. */ > #define nr_cpumask_bits nr_cpu_ids > #else > #define nr_cpumask_bits ((unsigned int)NR_CPUS) > #endif > > Where do you see a problem?
I'm fine with the implementation. Just struggled with the wording / commit message. Sorry for the race in the mail thread... > > Thanks, > //richard