diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2023-03-25 22:29:04 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-04-11 23:13:33 +1000 |
commit | 89fb39134ae3b1e1f207af44a037721d92b32f70 (patch) | |
tree | 9ffddae06546881ea96ad1c8e7798420fb39ee23 /arch/powerpc/kernel/process.c | |
parent | d195ce4695ca1061993424e2d6c8995e5fc81606 (diff) | |
download | linux-89fb39134ae3b1e1f207af44a037721d92b32f70.tar.gz linux-89fb39134ae3b1e1f207af44a037721d92b32f70.tar.bz2 linux-89fb39134ae3b1e1f207af44a037721d92b32f70.zip |
powerpc: copy_thread don't set PPR in user interrupt frame regs
syscalls do not set the PPR field in their interrupt frame and
return from syscall always sets the default PPR for userspace,
so setting the value in the ret_from_fork frame is not necessary
and mildly inconsistent. Remove it.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230325122904.2375060-9-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r-- | arch/powerpc/kernel/process.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 2d90f39581fa..1fefafb2b29b 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -1812,11 +1812,6 @@ int copy_thread(struct task_struct *p, const struct kernel_clone_args *args) f = ret_from_fork; } -#ifdef CONFIG_PPC64 - if (cpu_has_feature(CPU_FTR_HAS_PPR)) - childregs->ppr = DEFAULT_PPR; -#endif - childregs->msr &= ~(MSR_FP|MSR_VEC|MSR_VSX); p->thread.regs = childregs; } |