summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2004-09-13 00:05:30 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-13 00:05:30 -0700
commit7d783796ed8e974fc82bed4ce4aec3dfa1f6a9b6 (patch)
tree14f8e113d7305f778b95c93386deee75096bf6ae /include
parent2d3399ab54c9763fcba314d0b33ab82e1580d7aa (diff)
[PATCH] Backward compatibility for compat sched_getaffinity
The follow patch special cases the NR_CPUS <= BITS_PER_COMPAT_LONG case. Without this patch, a 32bit task would be required to have a 64bit cpumask no matter what value of NR_CPUS are used. With this patch a compat long sized bitmask is allowed if NR_CPUS is small enough to fit within it. Of course applications should be using the glibc wrappers that use an opaque cpu_mask_t type, but there could be older applications using the syscalls directly. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions