x86: remove flush_agp_mappings()
authorIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:34:07 +0000 (13:34 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:34:07 +0000 (13:34 +0100)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/char/agp/backend.c
drivers/char/agp/generic.c
include/asm-alpha/agp.h
include/asm-ia64/agp.h
include/asm-parisc/agp.h
include/asm-powerpc/agp.h
include/asm-sparc64/agp.h
include/asm-x86/agp.h

index 832ded20fe70f60e2aa77ef3730beb94aac02cd8..2720882e66fec157dd987f0c665ae732171aa8df 100644 (file)
@@ -147,7 +147,6 @@ static int agp_backend_initialize(struct agp_bridge_data *bridge)
                        printk(KERN_ERR PFX "unable to get memory for scratch page.\n");
                        return -ENOMEM;
                }
-               flush_agp_mappings();
 
                bridge->scratch_page_real = virt_to_gart(addr);
                bridge->scratch_page =
@@ -191,7 +190,6 @@ err_out:
        if (bridge->driver->needs_scratch_page) {
                bridge->driver->agp_destroy_page(gart_to_virt(bridge->scratch_page_real),
                                                 AGP_PAGE_DESTROY_UNMAP);
-               flush_agp_mappings();
                bridge->driver->agp_destroy_page(gart_to_virt(bridge->scratch_page_real),
                                                 AGP_PAGE_DESTROY_FREE);
        }
@@ -219,7 +217,6 @@ static void agp_backend_cleanup(struct agp_bridge_data *bridge)
            bridge->driver->needs_scratch_page) {
                bridge->driver->agp_destroy_page(gart_to_virt(bridge->scratch_page_real),
                                                 AGP_PAGE_DESTROY_UNMAP);
-               flush_agp_mappings();
                bridge->driver->agp_destroy_page(gart_to_virt(bridge->scratch_page_real),
                                                 AGP_PAGE_DESTROY_FREE);
        }
index 64b2f6d7059dc96f494e49ace44a2601937d5a85..1a4674ce0c718f4c1c3a9bceb8342551fc5e73b8 100644 (file)
@@ -197,7 +197,6 @@ void agp_free_memory(struct agp_memory *curr)
                for (i = 0; i < curr->page_count; i++) {
                        curr->bridge->driver->agp_destroy_page(gart_to_virt(curr->memory[i]), AGP_PAGE_DESTROY_UNMAP);
                }
-               flush_agp_mappings();
                for (i = 0; i < curr->page_count; i++) {
                        curr->bridge->driver->agp_destroy_page(gart_to_virt(curr->memory[i]), AGP_PAGE_DESTROY_FREE);
                }
@@ -267,8 +266,6 @@ struct agp_memory *agp_allocate_memory(struct agp_bridge_data *bridge,
        }
        new->bridge = bridge;
 
-       flush_agp_mappings();
-
        return new;
 }
 EXPORT_SYMBOL(agp_allocate_memory);
index ef855a3bc0f54eed5048af5cf636d4c365bf29e7..26c17913529366ef0a5930b073c0e1f4648b6b70 100644 (file)
@@ -7,7 +7,6 @@
 
 #define map_page_into_agp(page) 
 #define unmap_page_from_agp(page) 
-#define flush_agp_mappings() 
 #define flush_agp_cache() mb()
 
 /* Convert a physical address to an address suitable for the GART. */
index 4e517f0e6afa34e81e9aecdeee51bf0eaec2b967..c11fdd8ab4d7a88665c757a81c6e8c1a471bdf90 100644 (file)
@@ -15,7 +15,6 @@
  */
 #define map_page_into_agp(page)                /* nothing */
 #define unmap_page_from_agp(page)      /* nothing */
-#define flush_agp_mappings()           /* nothing */
 #define flush_agp_cache()              mb()
 
 /* Convert a physical address to an address suitable for the GART. */
index 9f61d4eb6c01fd1fd61f25e0c7fbc16ddf54a891..9651660da639a32b6c0d20cc11aaafff2fce549b 100644 (file)
@@ -9,7 +9,6 @@
 
 #define map_page_into_agp(page)                /* nothing */
 #define unmap_page_from_agp(page)      /* nothing */
-#define flush_agp_mappings()           /* nothing */
 #define flush_agp_cache()              mb()
 
 /* Convert a physical address to an address suitable for the GART. */
index e5ccaca2f5a42a0d379281536601766594ccec49..86455c4c31eea851f84b73ddbdc126581ff49c92 100644 (file)
@@ -6,7 +6,6 @@
 
 #define map_page_into_agp(page)
 #define unmap_page_from_agp(page)
-#define flush_agp_mappings()
 #define flush_agp_cache() mb()
 
 /* Convert a physical address to an address suitable for the GART. */
index 58f8cb6ae767d536769a8a43ab46564a5665b96b..e9fcf0e781ea11cd1644dc9dc3e96aa6519fa0e6 100644 (file)
@@ -5,7 +5,6 @@
 
 #define map_page_into_agp(page) 
 #define unmap_page_from_agp(page) 
-#define flush_agp_mappings() 
 #define flush_agp_cache() mb()
 
 /* Convert a physical address to an address suitable for the GART. */
index 0c309b9a521799fb521d127a359ab92e93bcb91e..e4004a9f6a9a53fa03c7b5ce6db80809180dc703 100644 (file)
@@ -14,7 +14,6 @@
 
 #define map_page_into_agp(page) set_pages_uc(page, 1)
 #define unmap_page_from_agp(page) set_pages_wb(page, 1)
-#define flush_agp_mappings() do { } while (0)
 
 /*
  * Could use CLFLUSH here if the cpu supports it. But then it would