Re: [PATCH] cpumask 5/10 rewrite cpumask.h - single bitmap based implementation

Andrew Morton
2004-06-04T00:04:49Z

Paul Jackson <pj@sgi.com> wrote:
>
> Major rewrite of cpumask to use a single implementation,
> as a struct-wrapped bitmap.
>
> ...
>
> +typedef struct { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
>

We avoided doing this because in some situations the compiler will not pass
such a cpumask_t in a register, ever. An efficiency problem on sparc64,
apparently.