]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/hash32: use physical address directly in hash handlers.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 21 Feb 2019 10:37:57 +0000 (10:37 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Feb 2019 13:10:16 +0000 (00:10 +1100)
commit2ad6287aec71637134203344f9591c9632ecef94
treecb64ea140d7c0ecdbe3546524d3aaeea2310ad5a
parent73d0667966cdf8dcbf286c86d3127cad64775512
powerpc/hash32: use physical address directly in hash handlers.

Since commit 764ffca4b6f4 ("powerpc: remove remaining bits from
CONFIG_APUS"), tophys() has become a pure constant operation.
PAGE_OFFSET is known at compile time so the physical address
can be builtin directly.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hash_low_32.S
arch/powerpc/mm/ppc_mmu_32.c