]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32: use set_memory_attr()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 9 Jun 2021 01:34:31 +0000 (11:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 Jun 2021 11:13:21 +0000 (21:13 +1000)
commitc00f066d2a3ecb2f2cff6ec1dbf49e0fac3ae065
tree9fe35af55ce11069603bb65ee321ef100f6faf93
parent4843f42ec147691b49e7ee63f7bb5c6f9efdc89d
powerpc/32: use set_memory_attr()

Use set_memory_attr() instead of the PPC32 specific change_page_attr()

change_page_attr() was checking that the address was not mapped by
blocks and was handling highmem, but that's unneeded because the
affected pages can't be in highmem and block mapping verification
is already done by the callers.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[ruscur: rebase on powerpc/merge with Christophe's new patches]
Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210609013431.9805-10-jniethe5@gmail.com
arch/powerpc/mm/pgtable_32.c