[Glibc-bsd-commits] r2005 - trunk/glibc-ports/kfreebsd/bits

ps-guest at alioth.debian.org ps-guest at alioth.debian.org
Wed Oct 24 21:26:00 UTC 2007


Author: ps-guest
Date: 2007-10-24 21:26:00 +0000 (Wed, 24 Oct 2007)
New Revision: 2005

Modified:
   trunk/glibc-ports/kfreebsd/bits/sched.h
Log:
* __CPU_ALLOC_SIZE() is needed by glibc 2.7



Modified: trunk/glibc-ports/kfreebsd/bits/sched.h
===================================================================
--- trunk/glibc-ports/kfreebsd/bits/sched.h	2007-10-23 20:47:52 UTC (rev 2004)
+++ trunk/glibc-ports/kfreebsd/bits/sched.h	2007-10-24 21:26:00 UTC (rev 2005)
@@ -110,4 +110,11 @@
   ((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu))
 # define __CPU_ISSET(cpu, cpusetp) \
   (((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0)
+
+# define __CPU_ALLOC_SIZE(count) \
+    ((((count) + __NCPUBITS - 1) / __NCPUBITS) * 8) 
+# define __CPU_ALLOC(count) __sched_cpualloc (count)
+# define __CPU_FREE(cpuset) __sched_cpufree (cpuset)
+
 #endif
+    
\ No newline at end of file




More information about the Glibc-bsd-commits mailing list