From f3423d5ab5a64638d38783c74d4c0330db60ff78 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 6 Dec 2005 00:35:22 +0000 Subject: * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_POSIX_CPU_TIMERS): New macro, for 2.6.12 and later. --- sysdeps/unix/sysv/linux/kernel-features.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sysdeps') 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. -- cgit v1.2.3