powerpc/time: Avoid using get_tbl()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 9 Feb 2021 10:26:22 +0000 (10:26 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 11 Feb 2021 12:35:13 +0000 (23:35 +1100)
commit55d68df623eb679cc91f61137f14751e7f369662
treea67f771571781f5970fd8eea8b9fd8855bc5d653
parente10656114d32c659768e7ca8aebaaa6ac6e959ab
powerpc/time: Avoid using get_tbl()

get_tbl() is confusing as it returns the content TBL register
on PPC32 but the concatenation of TBL and TBU on PPC64.

Use mftb() instead.

This will allow the removal of get_tbl() in a following patch.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/decefb47c8a2070bf55d20b096b813908c7b3110.1612866360.git.christophe.leroy@csgroup.eu
arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c