summaryrefslogtreecommitdiff
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-06-23 18:50:29 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-23 18:50:29 -0700
commitd2cec97bc421d6f9c2ee0d9bd8e0ce47d0022cac (patch)
tree527641d4a33f472af4e9b233f65108e7cf0a96d1 /lib/bitmap.c
parent8c1ce9d6d628945ff23f844dbe9f21f5d5383b99 (diff)
[PATCH] cpumask: make cpu_present_map real even on non-smp
From: Paul Jackson <pj@sgi.com> This patch makes cpu_present_map a real map for all configurations, instead of a constant for non-SMP. It also moves the definition of cpu_present_map out of kernel/cpu.c into kernel/sched.c, because cpu.c isn't compiled into non-SMP kernels. The pattern is that each of the possible, present and online cpu maps are actual kernel global cpumask_t variables, for all configurations. They are documented in include/linux/cpumask.h. Some of the UP (NR_CPUS=1) code cheats, and hardcodes the assumption that the single bit position of these maps is always set, as an optimization. Signed-off-by: Paul Jackson <pj@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions