]> git.openfabrics.org - compat-rdma/compat.git/commitdiff
compat: backport defining COMPAT_USE_64BIT_TIME
authorLuis R. Rodriguez <mcgrof@frijolero.org>
Fri, 9 Mar 2012 20:53:29 +0000 (12:53 -0800)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Fri, 9 Mar 2012 20:53:29 +0000 (12:53 -0800)
Only x86 seems to use this so far.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
include/linux/compat-3.4.h

index 378371f492a2dfe2693a64c33bec6bd2b702d4d4..0a6a8ead2312a9fd0d98abb79a9e9be437ff2b3b 100644 (file)
@@ -7,6 +7,13 @@
 
 #include <linux/etherdevice.h>
 
+#ifdef CONFIG_X86_X32_ABI
+#define COMPAT_USE_64BIT_TIME \
+       (!!(task_pt_regs(current)->orig_ax & __X32_SYSCALL_BIT))
+#else
+#define COMPAT_USE_64BIT_TIME 0
+#endif
+
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,12))
 static inline void eth_hw_addr_random(struct net_device *dev)
 {