]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/radix: Refactor radix__mark_rodata_ro()
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 14 Jul 2017 06:51:21 +0000 (16:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 18 Jul 2017 08:51:34 +0000 (18:51 +1000)
commit56d7ac22ea2c1ef34e0b771c55ed850cdf0a30f6
treeb131270d9caf84f46fc043aa02c12abe9414ea80
parentd11d65e343bc81dfbdd0fe87a65d543a00c8a721
powerpc/mm/radix: Refactor radix__mark_rodata_ro()

Move the core logic into a helper, so we can use it for changing permissions
other than _PAGE_WRITE.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable-radix.c