reduce tlb/cache flush times of agpgart memory allocation
authorShaohua Li <shaohua.li@intel.com>
Mon, 4 Aug 2008 06:51:30 +0000 (14:51 +0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 Aug 2008 14:30:48 +0000 (16:30 +0200)
commit466ae837424dcc538b1af2a0eaf53be32edcdbe7
treefb19282470b844aa6e1affc52b65dd707196d223
parent1ac2f7d55b7ee1613c90631e87fea22ec06781e5
reduce tlb/cache flush times of agpgart memory allocation

To reduce tlb/cache flush, makes agp memory allocation do one flush
after all pages in a region are changed to uc.

All agp drivers except agp-sgi uses agp_generic_alloc_page()
for .agp_alloc_page, so the patch should work for them. agp-sgi is only
for ia64, so not a problem too.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Cc: airlied@linux.ie
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/char/agp/agp.h
drivers/char/agp/generic.c
include/asm-x86/agp.h