diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-30 07:31:08 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:08 -0500 |
commit | e34907ae180f4fe6c28bb4516c679c2f81b0c9ed (patch) | |
tree | 8300a93a1b900d788aea5859b506a95e7d21982c /include/asm-x86 | |
parent | 929fd589135ed417663f1b75b8031c9cf6687700 (diff) |
x86: remove volatile keyword from clflush.
the p parameter is an explicit memory reference, and is
enough to prevent gcc to being nasty here. The volatile
seems completely not needed.
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/system_32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/system_32.h b/include/asm-x86/system_32.h index f5b3f77f5310..28978b17b07a 100644 --- a/include/asm-x86/system_32.h +++ b/include/asm-x86/system_32.h | |||
@@ -161,7 +161,7 @@ static inline void native_wbinvd(void) | |||
161 | asm volatile("wbinvd": : :"memory"); | 161 | asm volatile("wbinvd": : :"memory"); |
162 | } | 162 | } |
163 | 163 | ||
164 | static inline void clflush(volatile void *__p) | 164 | static inline void clflush(void *__p) |
165 | { | 165 | { |
166 | asm volatile("clflush %0" : "+m" (*(char __force *)__p)); | 166 | asm volatile("clflush %0" : "+m" (*(char __force *)__p)); |
167 | } | 167 | } |