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

From: Davide Libenzi (davidel@xmailserver.org)
Date: Mon Nov 26 2001 - 23:48:18 EST


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/



This archive was generated by hypermail 2b29 : Fri Nov 30 2001 - 21:00:25 EST