From 19dd090a0f68765db87990ef8eda9bf77bb29581 Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Sat, 4 Jun 2011 21:21:41 +0200 Subject: libc: flesh out linux scheduler functions Most stuff was taken from the eglibc. Signed-off-by: Henning Heinold Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/bits/kernel-features.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/bits/kernel-features.h') diff --git a/libc/sysdeps/linux/common/bits/kernel-features.h b/libc/sysdeps/linux/common/bits/kernel-features.h index 6bf554457..5ea85d2ae 100644 --- a/libc/sysdeps/linux/common/bits/kernel-features.h +++ b/libc/sysdeps/linux/common/bits/kernel-features.h @@ -494,4 +494,7 @@ # define __ASSUME_PRIVATE_FUTEX 1 #endif - +/* getcpu is a syscall for x86-64 since 3.1. */ +#if defined __x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100 +# define __ASSUME_GETCPU_SYSCALL 1 +#endif -- cgit v1.2.3