diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-11-13 19:57:18 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-11-13 19:57:18 +0000 |
commit | ec2979623724f550af61eac64c11bc847bb35f7f (patch) | |
tree | a9152747fdbf16dc464f1e5d05f22fc1b6f7272e /sysdeps | |
parent | 0e54a7250fe6b03f07217beb8280d1be1951f4d8 (diff) | |
download | glibc-ec2979623724f550af61eac64c11bc847bb35f7f.tar glibc-ec2979623724f550af61eac64c11bc847bb35f7f.tar.gz glibc-ec2979623724f550af61eac64c11bc847bb35f7f.tar.bz2 glibc-ec2979623724f550af61eac64c11bc847bb35f7f.zip |
[BZ #7029]
2008-11-13 Ulrich Drepper <drepper@redhat.com>
[BZ #7029]
* sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
Multiply with sizeof of __cpu_mask, not 8 unconditionally after
all the rounding.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/sched.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h index 38ba305006..8f694d70c4 100644 --- a/sysdeps/unix/sysv/linux/bits/sched.h +++ b/sysdeps/unix/sysv/linux/bits/sched.h @@ -1,6 +1,6 @@ /* Definitions of constants and data structure for POSIX 1003.1b-1993 scheduling interface. - Copyright (C) 1996-1999,2001-2003,2005,2006,2007 + Copyright (C) 1996-1999,2001-2003,2005,2006,2007,2008 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -184,7 +184,7 @@ typedef struct __dest; })) # define __CPU_ALLOC_SIZE(count) \ - ((((count) + __NCPUBITS - 1) / __NCPUBITS) * 8) + ((((count) + __NCPUBITS - 1) / __NCPUBITS) * sizeof (__cpu_mask)) # define __CPU_ALLOC(count) __sched_cpualloc (count) # define __CPU_FREE(cpuset) __sched_cpufree (cpuset) |