Skip to content

Commit 1156a62

Browse files
chleroympe
authored andcommitted
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: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/a8eaabb87d69534e533ebac805163e08146e05bd.1601556145.git.christophe.leroy@csgroup.eu
1 parent e8d5bf3 commit 1156a62

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

  • arch/powerpc/include/asm

arch/powerpc/include/asm/time.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,11 @@ struct div_result {
3838
u64 result_low;
3939
};
4040

41-
#ifdef CONFIG_PPC64
42-
4341
/* For compatibility, get_tbl() is defined as get_tb() on ppc64 */
44-
#define get_tbl get_tb
45-
46-
#else
47-
4842
static inline unsigned long get_tbl(void)
4943
{
5044
return mftb();
5145
}
52-
#endif /* !CONFIG_PPC64 */
5346

5447
static inline u64 get_vtb(void)
5548
{

0 commit comments

Comments
 (0)