OSDN Git Service

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)
commitc988cfd38e489d9390d253d4392590daf451d87a
tree9fe35af55ce11069603bb65ee321ef100f6faf93
parent4d1755b6a762149ae022a32fb2bbeefb6680baa6
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