Christophe Leroy 72e4b2cdf0 powerpc/time: refactor MFTB() to limit number of ifdefs
The 8xx cannot access the TBL and TBU registers using mfspr/mtspr
It must be accessed using mftb/mftbu

Due to this, there is a number of places with #ifdef CONFIG_8xx

This patch defines new macros MFTBL(x) and MFTBU(x) on the same model
as MFTB(x) and tries to make use of them as much as possible.

In arch/powerpc/include/asm/timex.h, we also remove the ifdef
for the asm() operands as the compiler doesn't mind unused operands

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-08-10 23:32:09 +10:00
..
2016-06-14 13:58:26 +10:00
2017-06-28 06:54:33 -07:00
2016-06-21 15:30:56 +10:00
2014-11-27 09:32:58 +11:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2017-06-27 17:02:50 -07:00
2016-07-15 14:57:47 +10:00
2017-07-03 23:05:43 +10:00
2017-07-12 16:26:03 -07:00
2017-07-03 23:05:43 +10:00
2017-06-27 12:09:09 +10:00
2015-04-07 17:15:13 +10:00