projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a30383
)
powerpc: Remove redundant FP/Altivec giveup code
author
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Wed, 16 Aug 2017 06:01:16 +0000
(16:01 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 16 Aug 2017 12:34:42 +0000
(22:34 +1000)
__giveup_vsx() already calls those two functions.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
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 cd476e338768a6fdbc62bc4a23436ba880fca2ed..32b58648052f3c1ab057f349425ecc29779e9da8 100644
(file)
--- a/
arch/powerpc/kernel/process.c
+++ b/
arch/powerpc/kernel/process.c
@@
-374,10
+374,6
@@
void enable_kernel_vsx(void)
*/
if(!msr_tm_active(cpumsr) && msr_tm_active(current->thread.regs->msr))
return;
- if (current->thread.regs->msr & MSR_FP)
- __giveup_fpu(current);
- if (current->thread.regs->msr & MSR_VEC)
- __giveup_altivec(current);
__giveup_vsx(current);
}
}