Browse Source

kernel-features: add __ASSUME_POSIX_CPU_TIMERS

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 16 years ago
parent
commit
8fc39ee8fe
1 changed files with 5 additions and 0 deletions
  1. 5 0
      libc/sysdeps/linux/common/bits/kernel-features.h

+ 5 - 0
libc/sysdeps/linux/common/bits/kernel-features.h

@@ -319,6 +319,11 @@
 # 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.