diff options
author | Jan Beulich <jbeulich@novell.com> | 2007-04-02 09:50:14 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2007-04-26 14:22:50 -0400 |
commit | 9eeee244142562cba4f9fbc93962acf6a61847b5 (patch) | |
tree | 647ff0de4f6bdf9dacf9a5c80a9514bd073f3016 /include/asm-i386/agp.h | |
parent | 77ec430ec3b5c6b9bd6dcb0ff9764d9c95bbd227 (diff) |
[AGPGART] Move [un]map_page_into_agp into asm/agp.h
Remove an arch-dependent hunk in favor of #define-ing the respective bits in
asm-<arch>/agp.h (allowing easier overriding in para-virtualized environments).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'include/asm-i386/agp.h')
-rw-r--r-- | include/asm-i386/agp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-i386/agp.h b/include/asm-i386/agp.h index 9075083bab76..6af173dbf123 100644 --- a/include/asm-i386/agp.h +++ b/include/asm-i386/agp.h | |||
@@ -12,8 +12,10 @@ | |||
12 | * data corruption on some CPUs. | 12 | * data corruption on some CPUs. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | int map_page_into_agp(struct page *page); | 15 | /* Caller's responsibility to call global_flush_tlb() for |
16 | int unmap_page_from_agp(struct page *page); | 16 | * performance reasons */ |
17 | #define map_page_into_agp(page) change_page_attr(page, 1, PAGE_KERNEL_NOCACHE) | ||
18 | #define unmap_page_from_agp(page) change_page_attr(page, 1, PAGE_KERNEL) | ||
17 | #define flush_agp_mappings() global_flush_tlb() | 19 | #define flush_agp_mappings() global_flush_tlb() |
18 | 20 | ||
19 | /* Could use CLFLUSH here if the cpu supports it. But then it would | 21 | /* Could use CLFLUSH here if the cpu supports it. But then it would |