From: Ulrich Drepper Date: Fri, 8 Jun 2007 19:25:07 +0000 (+0000) Subject: * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of X-Git-Tag: cvs/glibc-2_6_1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=755db8c5bd8d85c946efdaafac71591393f59c60;p=thirdparty%2Fglibc.git * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of __sched_cpucount as const. * posix/sched_cpucount.c: Adjust. --- diff --git a/ChangeLog b/ChangeLog index f2ae8991dff..fc5436bda90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-06-08 Ulrich Drepper + * 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. diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h index 31db66f8ac7..96ae96f8261 100644 --- a/sysdeps/unix/sysv/linux/bits/sched.h +++ b/sysdeps/unix/sysv/linux/bits/sched.h @@ -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