projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2e0060
)
powerpc/time: Remove ifdef in get_vtb()
author
Christophe Leroy
<christophe.leroy@csgroup.eu>
Thu, 1 Oct 2020 10:59:20 +0000
(10:59 +0000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:32 +0000
(
01:01
+1100)
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
arch/powerpc/include/asm/time.h
patch
|
blob
|
history
diff --git
a/arch/powerpc/include/asm/time.h
b/arch/powerpc/include/asm/time.h
index a59f8030f02096edba3bc82ec665ae69fc541b5f..8f789b597bae5a8c7f7493e15c12912cbd49dbc8 100644
(file)
--- 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;
}