projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17e8ea6
)
compat: backport defining COMPAT_USE_64BIT_TIME
author
Luis R. Rodriguez
<mcgrof@frijolero.org>
Fri, 9 Mar 2012 20:53:29 +0000
(12:53 -0800)
committer
Luis 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
patch
|
blob
|
history
diff --git
a/include/linux/compat-3.4.h
b/include/linux/compat-3.4.h
index 378371f492a2dfe2693a64c33bec6bd2b702d4d4..0a6a8ead2312a9fd0d98abb79a9e9be437ff2b3b 100644
(file)
--- a/
include/linux/compat-3.4.h
+++ b/
include/linux/compat-3.4.h
@@
-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)
{