On Wed, 2017-08-09 at 17:06 +1000, Michael Ellerman wrote: > /** > * cpumask_weight - Count of bits in *srcp > * @srcp: the cpumask to count bits (< nr_cpu_ids) in. > */ > static inline unsigned int cpumask_weight(const struct cpumask *srcp) > { > return bitmap_weight(cpumask_bits(srcp), nr_cpumask_bits); > } > > > I don't know what the comment on srcp is trying to say. It's not true > that it only counts nr_cpu_ids worth of bits.
Right, and that's what bit me. We should report that on lkml and maybe propose a patch that crops the result... Cheers, Ben.