mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 19:41:54 +00:00
x86: cpa: use wbinvd() macro instead of inline assembly in 64bit c_p_a()
Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
0e3a954929
commit
5b016432a7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user