Skip to content

Commit

Permalink
[BZ #7029]
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Nov 13, 2008
1 parent 0e54a72 commit ec29796
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
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.

2008-11-11 Ulrich Drepper <drepper@redhat.com>

[BZ #7009]
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/unix/sysv/linux/bits/sched.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit ec29796

Please sign in to comment.