diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-30 21:37:12 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-30 21:37:12 -0500 |
commit | 23fd07750a789a66fe88cf173d52a18f1a387da4 (patch) | |
tree | 06fdd6df35fdb835abdaa9b754d62f6b84b97250 /arch/powerpc/mm/pgtable_64.c | |
parent | bd787d438a59266af3c9f6351644c85ef1dd21fe (diff) | |
parent | ed28f96ac1960f30f818374d65be71d2fdf811b0 (diff) |
Merge ../linux-2.6 by hand
Diffstat (limited to 'arch/powerpc/mm/pgtable_64.c')
-rw-r--r-- | arch/powerpc/mm/pgtable_64.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/mm/pgtable_64.c b/arch/powerpc/mm/pgtable_64.c index 484d24f9208b..b79a78206135 100644 --- a/arch/powerpc/mm/pgtable_64.c +++ b/arch/powerpc/mm/pgtable_64.c | |||
@@ -104,7 +104,6 @@ static int map_io_page(unsigned long ea, unsigned long pa, int flags) | |||
104 | unsigned long vsid; | 104 | unsigned long vsid; |
105 | 105 | ||
106 | if (mem_init_done) { | 106 | if (mem_init_done) { |
107 | spin_lock(&init_mm.page_table_lock); | ||
108 | pgdp = pgd_offset_k(ea); | 107 | pgdp = pgd_offset_k(ea); |
109 | pudp = pud_alloc(&init_mm, pgdp, ea); | 108 | pudp = pud_alloc(&init_mm, pgdp, ea); |
110 | if (!pudp) | 109 | if (!pudp) |
@@ -112,12 +111,11 @@ static int map_io_page(unsigned long ea, unsigned long pa, int flags) | |||
112 | pmdp = pmd_alloc(&init_mm, pudp, ea); | 111 | pmdp = pmd_alloc(&init_mm, pudp, ea); |
113 | if (!pmdp) | 112 | if (!pmdp) |
114 | return -ENOMEM; | 113 | return -ENOMEM; |
115 | ptep = pte_alloc_kernel(&init_mm, pmdp, ea); | 114 | ptep = pte_alloc_kernel(pmdp, ea); |
116 | if (!ptep) | 115 | if (!ptep) |
117 | return -ENOMEM; | 116 | return -ENOMEM; |
118 | set_pte_at(&init_mm, ea, ptep, pfn_pte(pa >> PAGE_SHIFT, | 117 | set_pte_at(&init_mm, ea, ptep, pfn_pte(pa >> PAGE_SHIFT, |
119 | __pgprot(flags))); | 118 | __pgprot(flags))); |
120 | spin_unlock(&init_mm.page_table_lock); | ||
121 | } else { | 119 | } else { |
122 | unsigned long va, vpn, hash, hpteg; | 120 | unsigned long va, vpn, hash, hpteg; |
123 | 121 | ||