Commit 5b016432 authored by Andi Kleen's avatar Andi Kleen Committed by Ingo Molnar

x86: cpa: use wbinvd() macro instead of inline assembly in 64bit c_p_a()

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 0e3a9549
...@@ -86,7 +86,7 @@ static void flush_kernel_map(void *arg) ...@@ -86,7 +86,7 @@ static void flush_kernel_map(void *arg)
much cheaper than WBINVD. */ much cheaper than WBINVD. */
/* clflush is still broken. Disable for now. */ /* clflush is still broken. Disable for now. */
if (1 || !cpu_has_clflush) { if (1 || !cpu_has_clflush) {
asm volatile("wbinvd" ::: "memory"); wbinvd();
} else { } else {
list_for_each_entry(pg, l, lru) { list_for_each_entry(pg, l, lru) {
void *addr = page_address(pg); void *addr = page_address(pg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment