diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-07-04 05:00:38 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-07-04 05:00:42 -0400 |
commit | d7e57676e3ed7ab9b2c7c4bcb7873e51eacbdb84 (patch) | |
tree | f7433f38cd407a0c35a8cbf2b7e3fd756087bce7 /drivers/gpu/drm/ttm/ttm_tt.c | |
parent | feaa0457ec8351cae855edc9a3052ac49322538e (diff) | |
parent | 746a99a5af60ee676afa2ba469ccd1373493c7e7 (diff) |
Merge branch 'linus' into x86/cleanups
Merge reason: We were on an older pre-rc1 base, move to almost-rc2.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_tt.c')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_tt.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index c27ab3a877ad..75dc8bd24592 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c | |||
@@ -28,7 +28,6 @@ | |||
28 | * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 28 | * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <linux/version.h> | ||
32 | #include <linux/vmalloc.h> | 31 | #include <linux/vmalloc.h> |
33 | #include <linux/sched.h> | 32 | #include <linux/sched.h> |
34 | #include <linux/highmem.h> | 33 | #include <linux/highmem.h> |
@@ -68,7 +67,7 @@ static void ttm_tt_cache_flush_clflush(struct page *pages[], | |||
68 | ttm_tt_clflush_page(*pages++); | 67 | ttm_tt_clflush_page(*pages++); |
69 | mb(); | 68 | mb(); |
70 | } | 69 | } |
71 | #else | 70 | #elif !defined(__powerpc__) |
72 | static void ttm_tt_ipi_handler(void *null) | 71 | static void ttm_tt_ipi_handler(void *null) |
73 | { | 72 | { |
74 | ; | 73 | ; |
@@ -83,6 +82,15 @@ void ttm_tt_cache_flush(struct page *pages[], unsigned long num_pages) | |||
83 | ttm_tt_cache_flush_clflush(pages, num_pages); | 82 | ttm_tt_cache_flush_clflush(pages, num_pages); |
84 | return; | 83 | return; |
85 | } | 84 | } |
85 | #elif defined(__powerpc__) | ||
86 | unsigned long i; | ||
87 | |||
88 | for (i = 0; i < num_pages; ++i) { | ||
89 | if (pages[i]) { | ||
90 | unsigned long start = (unsigned long)page_address(pages[i]); | ||
91 | flush_dcache_range(start, start + PAGE_SIZE); | ||
92 | } | ||
93 | } | ||
86 | #else | 94 | #else |
87 | if (on_each_cpu(ttm_tt_ipi_handler, NULL, 1) != 0) | 95 | if (on_each_cpu(ttm_tt_ipi_handler, NULL, 1) != 0) |
88 | printk(KERN_ERR TTM_PFX | 96 | printk(KERN_ERR TTM_PFX |