aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/hash_utils_64.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2016-02-22 13:41:12 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2016-02-27 21:06:57 +1100
commit1ec3f937102154b54c3ba97b79d4bd3931bb0eaa (patch)
treefe1d48d2cac53135d9ffc8fd77f8c073ac7c070a /arch/powerpc/mm/hash_utils_64.c
parentMerge tag 'powerpc-4.5-4' into next (diff)
downloadlinux-dev-1ec3f937102154b54c3ba97b79d4bd3931bb0eaa.tar.xz
linux-dev-1ec3f937102154b54c3ba97b79d4bd3931bb0eaa.zip
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 '')
-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)
rflags |= HPTE_R_N;
/*
* PP bits:
- * Linux use slb key 0 for kernel and 1 for user.
- * kernel areas are mapped by PP bits 00
- * and and there is no kernel RO (_PAGE_KERNEL_RO).
- * User area mapped by 0x2 and read only use by
- * 0x3.
+ * Linux uses slb key 0 for kernel and 1 for user.
+ * kernel areas are mapped with PP=00
+ * and there is no kernel RO (_PAGE_KERNEL_RO).
+ * User area is mapped with PP=0x2 for read/write
+ * or PP=0x3 for read-only (including writeable but clean pages).
*/
if (pteflags & _PAGE_USER) {
rflags |= 0x2;