diff options
author | Alex Shi <alex.shi@intel.com> | 2012-05-10 06:01:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-05-18 04:13:37 -0400 |
commit | 3e7f3db001de6133db1c385c92eec944409a8b4f (patch) | |
tree | 593f4c0666dbe07e96e4e75e1eb6566d89d3fe3c /arch/x86/include | |
parent | 302616911da8e868d3f1a00dce517ca30b0e065d (diff) |
x86/tlb: Clean up and unify TLB_FLUSH_ALL definition
Since sizeof(long) is 4 in x86_32 mode, and it's 8 in x86_64
mode, sizeof(long long) is also 8 byte in x86_64 mode.
use long mode can fit TLB_FLUSH_ALL defination here both in 32
or 64 bits mode.
Signed-off-by: Alex Shi <alex.shi@intel.com>
Link: http://lkml.kernel.org/n/tip-evv5bekiipi2pmyzdsy8lkkw@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/tlbflush.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h index 169be8938b96..63af9098e6a5 100644 --- a/arch/x86/include/asm/tlbflush.h +++ b/arch/x86/include/asm/tlbflush.h | |||
@@ -62,11 +62,7 @@ static inline void __flush_tlb_one(unsigned long addr) | |||
62 | __flush_tlb(); | 62 | __flush_tlb(); |
63 | } | 63 | } |
64 | 64 | ||
65 | #ifdef CONFIG_X86_32 | 65 | #define TLB_FLUSH_ALL -1UL |
66 | # define TLB_FLUSH_ALL 0xffffffff | ||
67 | #else | ||
68 | # define TLB_FLUSH_ALL -1ULL | ||
69 | #endif | ||
70 | 66 | ||
71 | /* | 67 | /* |
72 | * TLB flushing: | 68 | * TLB flushing: |