diff options
author | Shaohua Li <shaohua.li@intel.com> | 2008-08-04 02:51:30 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-15 10:30:48 -0400 |
commit | 466ae837424dcc538b1af2a0eaf53be32edcdbe7 (patch) | |
tree | fb19282470b844aa6e1affc52b65dd707196d223 /drivers/char/agp/agp.h | |
parent | 1ac2f7d55b7ee1613c90631e87fea22ec06781e5 (diff) |
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>
Diffstat (limited to 'drivers/char/agp/agp.h')
-rw-r--r-- | drivers/char/agp/agp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/agp/agp.h b/drivers/char/agp/agp.h index 81e14bea54bd..395168fb17e3 100644 --- a/drivers/char/agp/agp.h +++ b/drivers/char/agp/agp.h | |||
@@ -30,6 +30,10 @@ | |||
30 | #define _AGP_BACKEND_PRIV_H 1 | 30 | #define _AGP_BACKEND_PRIV_H 1 |
31 | 31 | ||
32 | #include <asm/agp.h> /* for flush_agp_cache() */ | 32 | #include <asm/agp.h> /* for flush_agp_cache() */ |
33 | #ifndef map_page_into_agp_noflush | ||
34 | #define map_page_into_agp_noflush(page) map_page_into_agp(page) | ||
35 | #define map_page_into_agp_global_flush() | ||
36 | #endif | ||
33 | 37 | ||
34 | #define PFX "agpgart: " | 38 | #define PFX "agpgart: " |
35 | 39 | ||