summaryrefslogtreecommitdiff
path: root/linux/openzaurus-pxa-2.4.18-rmk7-pxa3-embedix20031107/buffered-fbmem.patch
blob: 554f1189366736083999006d0d5149f485d5e8fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

#
# Made by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- linux/drivers/video/fbmem.c~buffered-fbmem	2003-09-16 00:48:18.000000000 +0200
+++ linux/drivers/video/fbmem.c	2003-09-19 00:38:00.000000000 +0200
@@ -650,7 +650,11 @@
 	pgprot_val(vma->vm_page_prot) &= ~_CACHE_MASK;
 	pgprot_val(vma->vm_page_prot) |= _CACHE_UNCACHED;
 #elif defined(__arm__)
+#ifdef CONFIG_PXA
+	vma->vm_page_prot = pgprot_noncached_buffered(vma->vm_page_prot);
+#else
 	vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
+#endif
 #ifdef CONFIG_POODLE_CONSISTENT_ALLOC
 	vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | L_PTE_CACHEABLE);
 #endif