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>
Этот коммит содержится в:

коммит произвёл
Ingo Molnar

родитель
d1028a154c
Коммит
d7c8f21a8c
@@ -527,7 +527,6 @@ static void *i460_alloc_page (struct agp_bridge_data *bridge)
|
||||
|
||||
if (I460_IO_PAGE_SHIFT <= PAGE_SHIFT) {
|
||||
page = agp_generic_alloc_page(agp_bridge);
|
||||
global_flush_tlb();
|
||||
} else
|
||||
/* Returning NULL would cause problems */
|
||||
/* AK: really dubious code. */
|
||||
@@ -539,7 +538,6 @@ static void i460_destroy_page (void *page, int flags)
|
||||
{
|
||||
if (I460_IO_PAGE_SHIFT <= PAGE_SHIFT) {
|
||||
agp_generic_destroy_page(page, flags);
|
||||
global_flush_tlb();
|
||||
}
|
||||
}
|
||||
|
||||
|
Ссылка в новой задаче
Block a user