X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-generic%2Ftopology.h;h=a6aea79bca4f369b51f0e384e15bfabcdd7e13c5;hb=4fdfe401e9d7e30029972d568c667234c0c1d828;hp=342a2a0105c4c070f988d39afc90f46d52dca12d;hpb=b57dfbc4f7f8d394c5e96677d2b66ffca1b4e8a7;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-generic/topology.h b/include/asm-generic/topology.h index 342a2a0105c..a6aea79bca4 100644 --- a/include/asm-generic/topology.h +++ b/include/asm-generic/topology.h @@ -27,6 +27,8 @@ #ifndef _ASM_GENERIC_TOPOLOGY_H #define _ASM_GENERIC_TOPOLOGY_H +#ifndef CONFIG_NUMA + /* Other architectures wishing to use this simple topology API should fill in the below functions as appropriate in their own file. */ #ifndef cpu_to_node @@ -52,4 +54,16 @@ ) #endif +#endif /* CONFIG_NUMA */ + +/* returns pointer to cpumask for specified node */ +#ifndef node_to_cpumask_ptr + +#define node_to_cpumask_ptr(v, node) \ + cpumask_t _##v = node_to_cpumask(node), *v = &_##v + +#define node_to_cpumask_ptr_next(v, node) \ + _##v = node_to_cpumask(node) +#endif + #endif /* _ASM_GENERIC_TOPOLOGY_H */