[PATCH] x86 pat: Export pgprot_writecombine()

From: Thomas Hellstrom
Date: Fri Mar 20 2009 - 09:13:07 EST


This is used by the TTM GPU memory management system.

Signed-off-by: Thomas Hellstrom <thellstrom@xxxxxxxxxx>
---
arch/x86/mm/pat.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
index 7b61036..a931d8c 100644
--- a/arch/x86/mm/pat.c
+++ b/arch/x86/mm/pat.c
@@ -14,6 +14,7 @@
#include <linux/gfp.h>
#include <linux/mm.h>
#include <linux/fs.h>
+#include <linux/module.h>

#include <asm/cacheflush.h>
#include <asm/processor.h>
@@ -861,6 +862,8 @@ pgprot_t pgprot_writecombine(pgprot_t prot)
else
return pgprot_noncached(prot);
}
+EXPORT_SYMBOL(pgprot_writecombine);
+

#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_X86_PAT)

--
1.5.4.3


--------------070305090506020700070505
Content-Type: text/x-patch;
name="0002-Add-the-TTM-gpu-memory-subsystem.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="0002-Add-the-TTM-gpu-memory-subsystem.patch"