* [PATCH] x86: Use wbinvd() macro rather than inline assembly
@ 2008-01-15 21:13 Harvey Harrison
0 siblings, 0 replies; only message in thread
From: Harvey Harrison @ 2008-01-15 21:13 UTC (permalink / raw)
To: Ingo Molnar, Andi Kleen; +Cc: LKML, H. Peter Anvin, Thomas Gleixner
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
Taken from Andi's CPA 16/31, against x86.git, not sure what
the etiquette is with adding his S-O-B....
arch/x86/mm/pageattr_64.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/mm/pageattr_64.c b/arch/x86/mm/pageattr_64.c
index bafc0a5..5e0b36e 100644
--- a/arch/x86/mm/pageattr_64.c
+++ b/arch/x86/mm/pageattr_64.c
@@ -86,7 +86,7 @@ static void flush_kernel_map(void *arg)
much cheaper than WBINVD. */
/* clflush is still broken. Disable for now. */
if (1 || !cpu_has_clflush) {
- asm volatile("wbinvd" ::: "memory");
+ wbinvd();
} else {
list_for_each_entry(pg, l, lru) {
void *addr = page_address(pg);
--
1.5.4.rc2.1164.g6451
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-15 21:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-15 21:13 [PATCH] x86: Use wbinvd() macro rather than inline assembly Harvey Harrison
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox