aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-10-26 17:21:52 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-26 19:52:08 -0400
commitece0e2b6406a995c371e0311190631ea34ad851a (patch)
tree726a516a91f5f7efe9dbb247ba28d019981d456e /arch/arm/mm
parent3e4d3af501cccdc8a8cca41bdbe57d54ad7e7e73 (diff)
mm: remove pte_*map_nested()
Since we no longer need to provide KM_type, the whole pte_*map_nested() API is now redundant, remove it. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: Chris Metcalf <cmetcalf@tilera.com> Cc: David Howells <dhowells@redhat.com> Cc: Hugh Dickins <hughd@google.com> Cc: Rik van Riel <riel@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: David Miller <davem@davemloft.net> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r--arch/arm/mm/fault-armv.c4
-rw-r--r--arch/arm/mm/pgd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mm/fault-armv.c b/arch/arm/mm/fault-armv.c
index 8440d952ba6d..c493d7244d3d 100644
--- a/arch/arm/mm/fault-armv.c
+++ b/arch/arm/mm/fault-armv.c
@@ -89,13 +89,13 @@ static int adjust_pte(struct vm_area_struct *vma, unsigned long address,
89 * open-code the spin-locking. 89 * open-code the spin-locking.
90 */ 90 */
91 ptl = pte_lockptr(vma->vm_mm, pmd); 91 ptl = pte_lockptr(vma->vm_mm, pmd);
92 pte = pte_offset_map_nested(pmd, address); 92 pte = pte_offset_map(pmd, address);
93 spin_lock(ptl); 93 spin_lock(ptl);
94 94
95 ret = do_adjust_pte(vma, address, pfn, pte); 95 ret = do_adjust_pte(vma, address, pfn, pte);
96 96
97 spin_unlock(ptl); 97 spin_unlock(ptl);
98 pte_unmap_nested(pte); 98 pte_unmap(pte);
99 99
100 return ret; 100 return ret;
101} 101}
diff --git a/arch/arm/mm/pgd.c b/arch/arm/mm/pgd.c
index be5f58e153bf..69bbfc6645a6 100644
--- a/arch/arm/mm/pgd.c
+++ b/arch/arm/mm/pgd.c
@@ -57,9 +57,9 @@ pgd_t *get_pgd_slow(struct mm_struct *mm)
57 goto no_pte; 57 goto no_pte;
58 58
59 init_pmd = pmd_offset(init_pgd, 0); 59 init_pmd = pmd_offset(init_pgd, 0);
60 init_pte = pte_offset_map_nested(init_pmd, 0); 60 init_pte = pte_offset_map(init_pmd, 0);
61 set_pte_ext(new_pte, *init_pte, 0); 61 set_pte_ext(new_pte, *init_pte, 0);
62 pte_unmap_nested(init_pte); 62 pte_unmap(init_pte);
63 pte_unmap(new_pte); 63 pte_unmap(new_pte);
64 } 64 }
65 65