powerpc/time: Avoid using get_tbl() and get_tbu() internally
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 1 Oct 2020 12:42:41 +0000 (12:42 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 8 Oct 2020 10:17:15 +0000 (21:17 +1100)
commit942e89115b588b4b5df86930b5302a5c07b820ba
tree38985f10bbf1965edbb56f838efce713997f770e
parentff125fbcd45d1706861579dbe66e31f5b3f1e779
powerpc/time: Avoid using get_tbl() and get_tbu() internally

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

Use mftb() instead.

Do the same with get_tbu() for consistency allthough it's name
is less confusing.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/41573406a4eab98838decaa91649086fef1e6119.1601556145.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/delay.h
arch/powerpc/include/asm/time.h
arch/powerpc/kernel/time.c