diff options
author | venkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com> | 2008-12-19 16:47:28 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-12-19 18:40:30 -0500 |
commit | 982d789ab76c8a11426852fec2fdf2f412e21c0c (patch) | |
tree | 41e6932764facecb11bc9ca831ffd67ded384d68 /include/linux/mm.h | |
parent | d87fe6607c31944f7572f965c1507ae77026c133 (diff) |
x86: PAT: remove follow_pfnmap_pte in favor of follow_phys
Impact: Cleanup - removes a new function in favor of a recently modified older one.
Replace follow_pfnmap_pte in pat code with follow_phys. follow_phys lso
returns protection eliminating the need of pte_pgprot call. Using follow_phys
also eliminates the need for pte_pa.
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 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 2f6e2f886d4b..36f9b3fa5e15 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1239,9 +1239,6 @@ struct page *follow_page(struct vm_area_struct *, unsigned long address, | |||
1239 | #define FOLL_GET 0x04 /* do get_page on page */ | 1239 | #define FOLL_GET 0x04 /* do get_page on page */ |
1240 | #define FOLL_ANON 0x08 /* give ZERO_PAGE if no pgtable */ | 1240 | #define FOLL_ANON 0x08 /* give ZERO_PAGE if no pgtable */ |
1241 | 1241 | ||
1242 | int follow_pfnmap_pte(struct vm_area_struct *vma, | ||
1243 | unsigned long address, pte_t *ret_ptep); | ||
1244 | |||
1245 | typedef int (*pte_fn_t)(pte_t *pte, pgtable_t token, unsigned long addr, | 1242 | typedef int (*pte_fn_t)(pte_t *pte, pgtable_t token, unsigned long addr, |
1246 | void *data); | 1243 | void *data); |
1247 | extern int apply_to_page_range(struct mm_struct *mm, unsigned long address, | 1244 | extern int apply_to_page_range(struct mm_struct *mm, unsigned long address, |