diff options
-rw-r--r-- | drivers/char/agp/agp.h | 4 | ||||
-rw-r--r-- | drivers/char/agp/generic.c | 4 | ||||
-rw-r--r-- | include/asm-x86/agp.h | 3 |
3 files changed, 1 insertions, 10 deletions
diff --git a/drivers/char/agp/agp.h b/drivers/char/agp/agp.h index 395168fb17e3..81e14bea54bd 100644 --- a/drivers/char/agp/agp.h +++ b/drivers/char/agp/agp.h | |||
@@ -30,10 +30,6 @@ | |||
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 | ||
37 | 33 | ||
38 | #define PFX "agpgart: " | 34 | #define PFX "agpgart: " |
39 | 35 | ||
diff --git a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c index bf239b8ecac5..eaa1a355bb32 100644 --- a/drivers/char/agp/generic.c +++ b/drivers/char/agp/generic.c | |||
@@ -274,7 +274,6 @@ struct agp_memory *agp_allocate_memory(struct agp_bridge_data *bridge, | |||
274 | new->memory[i] = virt_to_gart(addr); | 274 | new->memory[i] = virt_to_gart(addr); |
275 | new->page_count++; | 275 | new->page_count++; |
276 | } | 276 | } |
277 | map_page_into_agp_global_flush(); | ||
278 | new->bridge = bridge; | 277 | new->bridge = bridge; |
279 | 278 | ||
280 | return new; | 279 | return new; |
@@ -1187,8 +1186,7 @@ void *agp_generic_alloc_page(struct agp_bridge_data *bridge) | |||
1187 | if (page == NULL) | 1186 | if (page == NULL) |
1188 | return NULL; | 1187 | return NULL; |
1189 | 1188 | ||
1190 | /* agp_allocate_memory will do flush */ | 1189 | map_page_into_agp(page); |
1191 | map_page_into_agp_noflush(page); | ||
1192 | 1190 | ||
1193 | get_page(page); | 1191 | get_page(page); |
1194 | atomic_inc(&agp_bridge->current_memory_agp); | 1192 | atomic_inc(&agp_bridge->current_memory_agp); |
diff --git a/include/asm-x86/agp.h b/include/asm-x86/agp.h index 181b9e984b3a..e4004a9f6a9a 100644 --- a/include/asm-x86/agp.h +++ b/include/asm-x86/agp.h | |||
@@ -15,9 +15,6 @@ | |||
15 | #define map_page_into_agp(page) set_pages_uc(page, 1) | 15 | #define map_page_into_agp(page) set_pages_uc(page, 1) |
16 | #define unmap_page_from_agp(page) set_pages_wb(page, 1) | 16 | #define unmap_page_from_agp(page) set_pages_wb(page, 1) |
17 | 17 | ||
18 | #define map_page_into_agp_noflush(page) set_pages_uc_noflush(page, 1) | ||
19 | #define map_page_into_agp_global_flush() set_memory_flush_all() | ||
20 | |||
21 | /* | 18 | /* |
22 | * Could use CLFLUSH here if the cpu supports it. But then it would | 19 | * Could use CLFLUSH here if the cpu supports it. But then it would |
23 | * need to be called for each cacheline of the whole page so it may | 20 | * need to be called for each cacheline of the whole page so it may |