]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
authorUlrich Drepper <drepper@redhat.com>
Fri, 8 Jun 2007 19:25:07 +0000 (19:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 8 Jun 2007 19:25:07 +0000 (19:25 +0000)
__sched_cpucount as const.
* posix/sched_cpucount.c: Adjust.

ChangeLog
sysdeps/unix/sysv/linux/bits/sched.h

index f2ae8991dff2b4ad4999a909baf6b17605dd345f..fc5436bda90d6f6e2fbdddb2e39ffb431504ba26 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
+       __sched_cpucount as const.
+       * posix/sched_cpucount.c: Adjust.
+
        * posix/sched_cpucount.c (__sched_cpucount): Allow using special
        instruction for counting bits.
        * sysdeps/x86_64/sched_cpucount.c: New file.
index 31db66f8ac7da0b396974f776364a310645d1de2..96ae96f826179464ef2a9f131ddbb48278ac0c54 100644 (file)
@@ -131,7 +131,8 @@ typedef struct
   ((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu))
 # define __CPU_ISSET(cpu, cpusetp) \
   (((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0)
-extern int __sched_cpucount (size_t __setsize, cpu_set_t *__setp) __THROW;
+extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
+  __THROW;
 # define __CPU_COUNT(cpusetp) \
   __sched_cpucount (sizeof (cpu_set_t), cpusetp)
 #endif