>>+extern int pnode_to_lnode[NR_NODES];
>>+extern char lnode_number[NR_CPUS] __cacheline_aligned;
> Can't you push all this down into the arch ....
>>+#define CPU_TO_NODE(cpu) lnode_number[cpu]
> ... by letting them define cpu_to_node() themselves?
> (most people don't have lnodes and pnodes, etc).
Yep... Sorry to get into the thread late, but Erich, you should really
look at the latest in-kernel topology API stuff in the mm tree. I'd be
happy to discuss it with you over email... Plus, I'd get another user
of the topology (to help push it into mainline) and ia64 support, and
you'd get a generic topology mechanism that works (err, will work?) for
all architectures. Email me for more info, or just check out the patch
that Martin pointed to! :)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/