From 7e2c38e8e574ff829e741bda0bfccd7cd2e90ac6 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Fri, 9 Mar 2012 12:53:29 -0800 Subject: [PATCH] compat: backport defining COMPAT_USE_64BIT_TIME Only x86 seems to use this so far. Signed-off-by: Luis R. Rodriguez --- include/linux/compat-3.4.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/compat-3.4.h b/include/linux/compat-3.4.h index 378371f492a2..0a6a8ead2312 100644 --- a/include/linux/compat-3.4.h +++ b/include/linux/compat-3.4.h @@ -7,6 +7,13 @@ #include +#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) { -- 2.30.2