projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24c174b
)
powerpc/mm/radix: Don't do SLB preload when using the radix MMU
author
Aneesh Kumar K.V
<aneesh.kumar@linux.ibm.com>
Tue, 9 Apr 2019 04:03:28 +0000
(09:33 +0530)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Sat, 20 Apr 2019 12:02:26 +0000
(22:02 +1000)
Add radix_enabled() check to avoid SLB preload with radix translation.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/process.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/process.c
b/arch/powerpc/kernel/process.c
index dd9e0d5386ee7030fe4539ef67e0b3a4d6e3eb46..f7b2e3b3db285e1e67c4cf52e46a9a048664f520 100644
(file)
--- a/
arch/powerpc/kernel/process.c
+++ b/
arch/powerpc/kernel/process.c
@@
-1729,7
+1729,8
@@
void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
unsigned long load_addr = regs->gpr[2]; /* saved by ELF_PLAT_INIT */
#ifdef CONFIG_PPC_BOOK3S_64
- preload_new_slb_context(start, sp);
+ if (!radix_enabled())
+ preload_new_slb_context(start, sp);
#endif
#endif