x86/tlb: Clean up and unify TLB_FLUSH_ALL definition
authorAlex Shi <alex.shi@intel.com>
Thu, 10 May 2012 10:01:59 +0000 (18:01 +0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 18 May 2012 08:13:37 +0000 (10:13 +0200)
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>
arch/x86/include/asm/tlbflush.h

index 169be8938b96778e76be9541bf37d2e9b8135833..63af9098e6a5baf64e73b2c2b8c42d48dabef511 100644 (file)
@@ -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: