mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip:x86/mm] x86/tlb: Clean up and unify TLB_FLUSH_ALL definition
@ 2012-05-18 10:50 tip-bot for Alex Shi
  0 siblings, 0 replies; only message in thread
From: tip-bot for Alex Shi @ 2012-05-18 10:50 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, alex.shi, tglx

Commit-ID:  3e7f3db001de6133db1c385c92eec944409a8b4f
Gitweb:     http://git.kernel.org/tip/3e7f3db001de6133db1c385c92eec944409a8b4f
Author:     Alex Shi <alex.shi@intel.com>
AuthorDate: Thu, 10 May 2012 18:01:59 +0800
Committer:  Ingo Molnar <mingo@kernel.org>
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.

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 |    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 169be89..63af909 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)
 		__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:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-18 10:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-18 10:50 [tip:x86/mm] x86/tlb: Clean up and unify TLB_FLUSH_ALL definition tip-bot for Alex Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome