aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable.h
diff options
context:
space:
mode:
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>2008-12-19 16:47:29 -0500
committerH. Peter Anvin <hpa@zytor.com>2008-12-19 18:40:30 -0500
commit34801ba9bf0381fcf0e2b08179d2c07f2c6ede74 (patch)
treee14d979cb9abf9220d0c60b04505851805975398 /arch/x86/include/asm/pgtable.h
parent982d789ab76c8a11426852fec2fdf2f412e21c0c (diff)
x86: PAT: move track untrack pfnmap stubs to asm-generic
Impact: Cleanup and branch hints only. Move the track and untrack pfn stub routines from memory.c to asm-generic. Also add unlikely to pfnmap related calls in fork and exit path. Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r--arch/x86/include/asm/pgtable.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index 2aa792bbd7e..875192bf72c 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -339,12 +339,10 @@ static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
339 339
340#define canon_pgprot(p) __pgprot(pgprot_val(p) & __supported_pte_mask) 340#define canon_pgprot(p) __pgprot(pgprot_val(p) & __supported_pte_mask)
341 341
342#ifndef __ASSEMBLY__
342/* Indicate that x86 has its own track and untrack pfn vma functions */ 343/* Indicate that x86 has its own track and untrack pfn vma functions */
343#define track_pfn_vma_new track_pfn_vma_new 344#define __HAVE_PFNMAP_TRACKING
344#define track_pfn_vma_copy track_pfn_vma_copy
345#define untrack_pfn_vma untrack_pfn_vma
346 345
347#ifndef __ASSEMBLY__
348#define __HAVE_PHYS_MEM_ACCESS_PROT 346#define __HAVE_PHYS_MEM_ACCESS_PROT
349struct file; 347struct file;
350pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, 348pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,