Skip to content

Commit

Permalink
x86: cpa: use wbinvd() macro instead of inline assembly in 64bit c_p_a()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Jan 30, 2008
1 parent 0e3a954 commit 5b01643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/mm/pageattr_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b01643

Please sign in to comment.