[Lucid SRU 5/5] x86, ptrace: Remove set_stopped_child_used_math() in [x]fpregs_set
Steve Conklin
sconklin at canonical.com
Tue Jul 20 10:51:35 UTC 2010
From: Suresh Siddha <suresh.b.siddha at intel.com>
BugLink: http://bugs.launchpad.net/bugs/607653
init_fpu() already ensures that the used_math() is set for the stopped child.
Remove the redundant set_stopped_child_used_math() in [x]fpregs_set()
Reported-by: Oleg Nesterov <oleg at redhat.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha at intel.com>
LKML-Reference: <20100222225240.642169080 at sbs-t61.sc.intel.com>
Acked-by: Rolan McGrath <roland at redhat.com>
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
>From upstream commit 6dbbe14f21368a45aedba7eab0221857b8ad8d16
Signed-off-by: Steve Conklin <sconklin at canonical.com>
---
arch/x86/kernel/i387.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/arch/x86/kernel/i387.c b/arch/x86/kernel/i387.c
index 81e23bf..c01a2b8 100644
--- a/arch/x86/kernel/i387.c
+++ b/arch/x86/kernel/i387.c
@@ -209,8 +209,6 @@ int xfpregs_set(struct task_struct *target, const struct user_regset *regset,
if (ret)
return ret;
- set_stopped_child_used_math(target);
-
ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
&target->thread.xstate->fxsave, 0, -1);
@@ -471,8 +469,6 @@ int fpregs_set(struct task_struct *target, const struct user_regset *regset,
if (ret)
return ret;
- set_stopped_child_used_math(target);
-
if (!HAVE_HWFP)
return fpregs_soft_set(target, regset, pos, count, kbuf, ubuf);
--
1.7.0.4
More information about the kernel-team
mailing list