lkml.org 
[lkml]   [2001]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] proc-based cpu affinity user interface
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/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.041 / U:1.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site