Re: [PATCH] powerpc/time: Remove ifdef in get_dec() and set_dec()

2020-10-08 Thread Michael Ellerman
On Thu, 1 Oct 2020 10:59:19 + (UTC), Christophe Leroy wrote: > Move SPRN_PIT definition in reg.h. > > This allows to remove ifdef in get_dec() and set_dec() and > makes them more readable. Applied to powerpc/next. [1/1] powerpc/time: Remove ifdef in get_dec() and set_dec() https://git.

[PATCH] powerpc/time: Remove ifdef in get_dec() and set_dec()

2020-10-01 Thread Christophe Leroy
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 --- arch/powerpc/include/asm/reg.h | 2 ++ arch/powerpc/include/asm/reg_booke.h | 1 - arch/powerpc/include/asm/time.h | 23 ++