aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/hash_utils_64.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2016-02-21 21:41:12 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2016-02-27 05:06:57 -0500
commit1ec3f937102154b54c3ba97b79d4bd3931bb0eaa (patch)
treefe1d48d2cac53135d9ffc8fd77f8c073ac7c070a /arch/powerpc/mm/hash_utils_64.c
parent2527083cb831024d22a03f68f54f6a46ecf5bf6c (diff)
powerpc/mm/book3s-64: Clean up some obsolete or misleading comments
No code changes. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/hash_utils_64.c')
-rw-r--r--arch/powerpc/mm/hash_utils_64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c
index ba59d5977f34..47a0bc12cb65 100644
--- a/arch/powerpc/mm/hash_utils_64.c
+++ b/arch/powerpc/mm/hash_utils_64.c
@@ -168,11 +168,11 @@ unsigned long htab_convert_pte_flags(unsigned long pteflags)
168 rflags |= HPTE_R_N; 168 rflags |= HPTE_R_N;
169 /* 169 /*
170 * PP bits: 170 * PP bits:
171 * Linux use slb key 0 for kernel and 1 for user. 171 * Linux uses slb key 0 for kernel and 1 for user.
172 * kernel areas are mapped by PP bits 00 172 * kernel areas are mapped with PP=00
173 * and and there is no kernel RO (_PAGE_KERNEL_RO). 173 * and there is no kernel RO (_PAGE_KERNEL_RO).
174 * User area mapped by 0x2 and read only use by 174 * User area is mapped with PP=0x2 for read/write
175 * 0x3. 175 * or PP=0x3 for read-only (including writeable but clean pages).
176 */ 176 */
177 if (pteflags & _PAGE_USER) { 177 if (pteflags & _PAGE_USER) {
178 rflags |= 0x2; 178 rflags |= 0x2;