Commit 1156a628 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/time: Make get_tbl() common to PPC32 and PPC64

On PPC64, get_tbl() is defined as an alias of get_tb() which return
the result of mftb(). That exactly the same as what the PPC32 version
does. We don't need two versions.

Remove the PPC64 definition of get_tbl() and use the PPC32 version
for both.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a8eaabb87d69534e533ebac805163e08146e05bd.1601556145.git.christophe.leroy@csgroup.eu
parent e8d5bf30
...@@ -38,18 +38,11 @@ struct div_result { ...@@ -38,18 +38,11 @@ struct div_result {
u64 result_low; u64 result_low;
}; };
#ifdef CONFIG_PPC64
/* For compatibility, get_tbl() is defined as get_tb() on ppc64 */ /* For compatibility, get_tbl() is defined as get_tb() on ppc64 */
#define get_tbl get_tb
#else
static inline unsigned long get_tbl(void) static inline unsigned long get_tbl(void)
{ {
return mftb(); return mftb();
} }
#endif /* !CONFIG_PPC64 */
static inline u64 get_vtb(void) static inline u64 get_vtb(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment