Re: [PATCH] proc-based cpu affinity user interface

Davide Libenzi (davidel@xmailserver.org)
Mon, 26 Nov 2001 20:48:18 -0800 (PST)


On Mon, 26 Nov 2001, Davide Libenzi wrote:

> Something like :
>
> unsigned long num2log_mask(unsigned long cmsk) {
> unsigned long msk = 0;
> int ii;
>
> for (ii = 0; ii < smp_num_cpus; ii++)
> if (cmsk & (1 << ii))
> msk |= (1 << cpu_logical_map(ii));
> return msk;
> }
>
> unsigned long log2num_mask(unsigned long cmsk) {
> unsigned long msk = 0;
> int ii;
>
> for (ii = 0; ii < smp_num_cpus; ii++)

for (ii = 0; ii < NR_CPUS; ii++)

- Davide

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/