lkml.org 
[lkml]   [2002]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Lse-tech] [PATCH 1/2] node affine NUMA scheduler
>> +	int this_pool = CPU_TO_NODE(this_cpu);
>> + int this_pool=CPU_TO_NODE(this_cpu), weight, maxweight=0;
>
> Howcome you can use the CPU_TO_NODE abstraction here ...
>
>> + /* build translation table for CPU_TO_NODE macro */
>> + for (i = 0; i < NR_CPUS; i++)
>> + if (cpu_online(i))
>> + lnode_number[i] = pnode_to_lnode[SAPICID_TO_PNODE(cpu_physical_id(i))];
>
> But not here?

Doh! Because you're building the list to use for CPU_TO_NODE,
obviously ;-) Sorry.

Should still get buried back down into the arch code though.

M.



-
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:29    [W:1.240 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site