Skip to contentSkip to conversation

x86/tlb: Clean up and unify TLB_FLUSH_ALL definition

tip:x86/mm tip-bot for Alex Shi 1 participant 1 message May 18, 2012 x86

lore
Share & tools
lore
#0 lore raw
Commit-ID:  3e7f3db001de6133db1c385c92eec944409a8b4f
Gitweb:     http://git.kernel.org/tip/3e7f3db001de6133db1c385c92eec944409a8b4f
Author:     Alex Shi <[email protected]>
AuthorDate: Thu, 10 May 2012 18:01:59 +0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 18 May 2012 10:13:37 +0200

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.

---
 arch/x86/include/asm/tlbflush.h |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
arch/x86/include/asm/tlbflush.h +1 -5
index 169be89..63af909 100644
@@ -62,11 +62,7 @@ static inline void __flush_tlb_one(unsigned long addr)
 		__flush_tlb();
 }
 
-#ifdef CONFIG_X86_32
-# define TLB_FLUSH_ALL	0xffffffff
-#else
-# define TLB_FLUSH_ALL	-1ULL
-#endif
+#define TLB_FLUSH_ALL	-1UL
 
 /*
  * TLB flushing: