diff options
author | Paul Jackson <pj@sgi.com> | 2005-10-30 18:03:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 20:37:28 -0500 |
commit | 4098f9918e068e51fed1727f6ba80efcec372378 (patch) | |
tree | 0495f14e29ad93c165988be49c70ec658fffd086 /kernel/sched.c | |
parent | 70a6a0cb92f24fd6bbe2e75299168909f735676a (diff) |
[PATCH] sched: hardcode non-smp set_cpus_allowed
Simplify the UP (1 CPU) implementatin of set_cpus_allowed.
The one CPU is hardcoded to be cpu 0 - so just test for that bit, and avoid
having to pick up the cpu_online_map.
Also, unexport cpu_online_map: it was only needed for set_cpus_allowed().
Signed-off-by: Paul Jackson <pj@sgi.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 4f26c544d02c..340dd238c16d 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -3877,7 +3877,6 @@ EXPORT_SYMBOL(cpu_present_map); | |||
3877 | 3877 | ||
3878 | #ifndef CONFIG_SMP | 3878 | #ifndef CONFIG_SMP |
3879 | cpumask_t cpu_online_map = CPU_MASK_ALL; | 3879 | cpumask_t cpu_online_map = CPU_MASK_ALL; |
3880 | EXPORT_SYMBOL_GPL(cpu_online_map); | ||
3881 | cpumask_t cpu_possible_map = CPU_MASK_ALL; | 3880 | cpumask_t cpu_possible_map = CPU_MASK_ALL; |
3882 | #endif | 3881 | #endif |
3883 | 3882 | ||