OSDN Git Service

kernel-features: add __ASSUME_POSIX_CPU_TIMERS
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 5 Feb 2010 18:18:47 +0000 (19:18 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 5 Feb 2010 18:18:47 +0000 (19:18 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/common/bits/kernel-features.h

index 923341b..c6647c8 100644 (file)
 # define __ASSUME_POSIX_TIMERS         1
 #endif
 
+/* Beginning with 2.6.12 the clock and timer supports CPU clocks.  */
+#if __LINUX_KERNEL_VERSION >= 0x2060c
+# define __ASSUME_POSIX_CPU_TIMERS      1
+#endif
+
 /* The late 2.5 kernels saw a lot of new CLONE_* flags.  Summarize
    their availability with one define.  The changes were made first
    for i386 and the have to be done separately for the other archs.