x86: Use wbinvd() macro rather than inline assembly
PATCH 1/1 x86: Use wbinvd() macro rather than inline assembly
Signed-off-by Harvey Harrison <[email protected]>
---
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(-)
arch/x86/mm/pageattr_64.c +1 -1
@@ -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) { - asmvolatile ("wbinvd" :::"memory" ); +wbinvd (); }else {list_for_each_entry (pg, l, lru) {void *addr =page_address (pg);
Signature · 1 line
1.5.4.rc2.1164.g6451