]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix usage of _PAGE_RO in hugepage
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 19 Sep 2016 10:58:54 +0000 (12:58 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Sep 2016 21:54:22 +0000 (07:54 +1000)
commitc000eaf568a66bc4001c8c2c803785fb45e6863b
tree51f28fcbbd1429d65d4a1cc5520e3c9ac83d34ab
parentd72bff9d7ed006439aadde89a710452be78c405d
powerpc: Fix usage of _PAGE_RO in hugepage

On some CPUs like the 8xx, _PAGE_RW hence _PAGE_WRITE is defined
as 0 and _PAGE_RO has to be set when a page is not writable

_PAGE_RO is defined by default in pte-common.h, however BOOK3S/64
doesn't include that file so _PAGE_RO has to be defined explicitly
in book3s/64/pgtable.h

Fixes: a055f5cf8bf62 ("powerpc32: adds handling of _PAGE_RO")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/pgtable.h
arch/powerpc/mm/hugetlbpage.c