]> err.no Git - linux-2.6/commitdiff
[PARISC] Define pgprot_noncached macro in pgtable.h
authorGrant Grundler <grundler@parisc-linux.org>
Sat, 22 Oct 2005 02:54:20 +0000 (22:54 -0400)
committerKyle McMartin <kyle@parisc-linux.org>
Sat, 22 Oct 2005 02:54:20 +0000 (22:54 -0400)
drivers/infiniband depends on definition of pgprot_noncached() macro.
Someone else will have to fix it's wrong.

Signed-off-by: Grant Grundler <grundler@parisc-linux.org
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
include/asm-parisc/pgtable.h

index 820c6e712cd7b863a0f30460cdc349da2b77072f..c28fb6f48c6c482471cc9e7df01a8a12e56fb1b5 100644 (file)
@@ -501,6 +501,8 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr,
 #define io_remap_pfn_range(vma, vaddr, pfn, size, prot)                \
                remap_pfn_range(vma, vaddr, pfn, size, prot)
 
+#define pgprot_noncached(prot) __pgprot(pgprot_val(prot) | _PAGE_NO_CACHE)
+
 #define MK_IOSPACE_PFN(space, pfn)     (pfn)
 #define GET_IOSPACE(pfn)               0
 #define GET_PFN(pfn)                   (pfn)