powerpc/time: Remove ifdef in get_dec() and set_dec()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 1 Oct 2020 10:59:19 +0000 (10:59 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 8 Oct 2020 10:17:14 +0000 (21:17 +1100)
commit63f9d9df5ed0d4f3a2c0cd08730e1cae1edd11bf
tree45d36892745d363c036d159462c6d444abcb1d48
parent6601ec1c2ba929430f5585ce7f9d9960b0e0a01d
powerpc/time: Remove ifdef in get_dec() and set_dec()

Move SPRN_PIT definition in reg.h.

This allows to remove ifdef in get_dec() and set_dec() and
makes them more readable.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/3c9a6eb0fc040868ac59be66f338d08fd017668d.1601549945.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/reg.h
arch/powerpc/include/asm/reg_booke.h
arch/powerpc/include/asm/time.h