Commit e16b38f71322efd8a221f64b6ddc0748d21d2e1a
Committed by
Linus Torvalds
1 parent
0f532f3861
Exists in
master
and in
7 other branches
[PATCH] cpumask: export cpu_online_map and cpu_possible_map consistently
cpumask: ensure that the cpu_online_map and cpu_possible_map bitmasks, and hence all the macros in <linux/cpumask.h> that require them, are available to modules for all supported combinations of architecture and CONFIG_SMP. Signed-off-by: Greg Banks <gnb@melbourne.sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 4 changed files with 7 additions and 0 deletions Side-by-side Diff
arch/arm/kernel/smp.c
... | ... | @@ -36,7 +36,9 @@ |
36 | 36 | * The online bitmask indicates that the CPU is up and running. |
37 | 37 | */ |
38 | 38 | cpumask_t cpu_possible_map; |
39 | +EXPORT_SYMBOL(cpu_possible_map); | |
39 | 40 | cpumask_t cpu_online_map; |
41 | +EXPORT_SYMBOL(cpu_online_map); | |
40 | 42 | |
41 | 43 | /* |
42 | 44 | * as from 2.5, kernels no longer have an init_tasks structure |
arch/cris/arch-v32/kernel/smp.c
arch/sh/kernel/smp.c
kernel/sched.c
... | ... | @@ -4384,7 +4384,10 @@ |
4384 | 4384 | |
4385 | 4385 | #ifndef CONFIG_SMP |
4386 | 4386 | cpumask_t cpu_online_map __read_mostly = CPU_MASK_ALL; |
4387 | +EXPORT_SYMBOL(cpu_online_map); | |
4388 | + | |
4387 | 4389 | cpumask_t cpu_possible_map __read_mostly = CPU_MASK_ALL; |
4390 | +EXPORT_SYMBOL(cpu_possible_map); | |
4388 | 4391 | #endif |
4389 | 4392 | |
4390 | 4393 | long sched_getaffinity(pid_t pid, cpumask_t *mask) |