diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2020-10-01 10:59:20 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-12-04 01:01:32 +1100 |
commit | c3cb5dbd85dbd9ae51fadf867782dc34806f04d8 (patch) | |
tree | 9657107ed148ee6bc570be8d368e8e40f0768c23 /arch | |
parent | d2e006036082e2dc394c5ec86c5bb88cc27c0749 (diff) | |
download | lwn-c3cb5dbd85dbd9ae51fadf867782dc34806f04d8.tar.gz lwn-c3cb5dbd85dbd9ae51fadf867782dc34806f04d8.zip |
powerpc/time: Remove ifdef in get_vtb()
SPRN_VTB and CPU_FTR_ARCH_207S are always defined,
no need of an ifdef.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a0fc81cd85121407726bcf480fc9a0d8e7617fce.1601549933.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/include/asm/time.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/time.h b/arch/powerpc/include/asm/time.h index a59f8030f020..8f789b597bae 100644 --- a/arch/powerpc/include/asm/time.h +++ b/arch/powerpc/include/asm/time.h @@ -41,10 +41,9 @@ struct div_result { static inline u64 get_vtb(void) { -#ifdef CONFIG_PPC_BOOK3S_64 if (cpu_has_feature(CPU_FTR_ARCH_207S)) return mfspr(SPRN_VTB); -#endif + return 0; } |