diff options
Diffstat (limited to 'include/asm-x86/topology.h')
-rw-r--r-- | include/asm-x86/topology.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/asm-x86/topology.h b/include/asm-x86/topology.h index 1f97758de4ab..98e5f17ea856 100644 --- a/include/asm-x86/topology.h +++ b/include/asm-x86/topology.h | |||
@@ -57,7 +57,12 @@ static inline int cpu_to_node(int cpu) | |||
57 | } | 57 | } |
58 | #define early_cpu_to_node(cpu) cpu_to_node(cpu) | 58 | #define early_cpu_to_node(cpu) cpu_to_node(cpu) |
59 | 59 | ||
60 | /* Returns a bitmask of CPUs on Node 'node'. */ | 60 | /* Returns a bitmask of CPUs on Node 'node'. |
61 | * | ||
62 | * Side note: this function creates the returned cpumask on the stack | ||
63 | * so with a high NR_CPUS count, excessive stack space is used. The | ||
64 | * node_to_cpumask_ptr function should be used whenever possible. | ||
65 | */ | ||
61 | static inline cpumask_t node_to_cpumask(int node) | 66 | static inline cpumask_t node_to_cpumask(int node) |
62 | { | 67 | { |
63 | return node_to_cpumask_map[node]; | 68 | return node_to_cpumask_map[node]; |