about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-12-06 00:35:22 +0000
committerRoland McGrath <roland@gnu.org>2005-12-06 00:35:22 +0000
commitf3423d5ab5a64638d38783c74d4c0330db60ff78 (patch)
tree2cdb56d89ad3fabc89aad3782230b03c84a94cc8 /sysdeps
parentec116e200ea3f08e93dbd4adc15c2e1347e0d388 (diff)
downloadglibc-f3423d5ab5a64638d38783c74d4c0330db60ff78.tar.gz
glibc-f3423d5ab5a64638d38783c74d4c0330db60ff78.tar.xz
glibc-f3423d5ab5a64638d38783c74d4c0330db60ff78.zip
* sysdeps/unix/sysv/linux/kernel-features.h
	(__ASSUME_POSIX_CPU_TIMERS): New macro, for 2.6.12 and later.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index 44ac727820..9bbd97e6d2 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -318,6 +318,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.