git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86: Create clflush() inline, remove hardcoded wbinvd
[sfrench/cifs-2.6.git]
/
include
/
asm-x86
/
system_32.h
diff --git
a/include/asm-x86/system_32.h
b/include/asm-x86/system_32.h
index 1d6fb3afa5336a2769a9966fbea9ed96690de4ef..db6283eb5e46d6f53ff24d33b0a5ec091e5a9fd0 100644
(file)
--- a/
include/asm-x86/system_32.h
+++ b/
include/asm-x86/system_32.h
@@
-161,6
+161,10
@@
static inline void native_wbinvd(void)
asm volatile("wbinvd": : :"memory");
}
+static inline void clflush(volatile void *__p)
+{
+ asm volatile("clflush %0" : "+m" (*(char __force *)__p));
+}
#ifdef CONFIG_PARAVIRT
#include <asm/paravirt.h>