x86: cpa: move flush to cpa
The set_memory_* and set_pages_* family of API's currently requires the callers to do a global tlb flush after the function call; forgetting this is a very nasty deathtrap. This patch moves the global tlb flush into each of the callers Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:

committed by
Ingo Molnar

parent
d1028a154c
commit
d7c8f21a8c
@@ -715,7 +715,6 @@ static void fill_nocache(void *buf, int size, int nocache)
|
||||
set_pages_uc(virt_to_page(buf), size);
|
||||
else
|
||||
set_pages_wb(virt_to_page(buf), size);
|
||||
global_flush_tlb();
|
||||
}
|
||||
#else
|
||||
#define fill_nocache(buf, size, nocache) do { ; } while (0)
|
||||
|
Reference in New Issue
Block a user