summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/delay.h
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2020-10-01 14:42:41 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2020-10-08 12:17:15 +0200
commit942e89115b588b4b5df86930b5302a5c07b820ba (patch)
tree38985f10bbf1965edbb56f838efce713997f770e /arch/powerpc/include/asm/delay.h
parentpowerpc/time: Make mftb() common to PPC32 and PPC64 (diff)
downloadlinux-942e89115b588b4b5df86930b5302a5c07b820ba.tar.xz
linux-942e89115b588b4b5df86930b5302a5c07b820ba.zip
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
Diffstat (limited to 'arch/powerpc/include/asm/delay.h')
-rw-r--r--arch/powerpc/include/asm/delay.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/delay.h b/arch/powerpc/include/asm/delay.h
index 66963f7d3e64..51bb8c1476c7 100644
--- a/arch/powerpc/include/asm/delay.h
+++ b/arch/powerpc/include/asm/delay.h
@@ -54,7 +54,7 @@ extern void udelay(unsigned long usecs);
({ \
typeof(condition) __ret; \
unsigned long __loops = tb_ticks_per_usec * timeout; \
- unsigned long __start = get_tbl(); \
+ unsigned long __start = mftb(); \
\
if (delay) { \
while (!(__ret = (condition)) && \