diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-09-02 19:57:30 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-09-02 23:51:16 +0200 |
commit | dc56c0f9b870fba7a4eef2bb463db6881284152b (patch) | |
tree | 4f557f5d3cbf778b98834cc247fd82027aec4604 /arch/x86/kernel/process_64.c | |
parent | x86, fpu: copy_process: Sanitize fpu->last_cpu initialization (diff) | |
download | linux-dc56c0f9b870fba7a4eef2bb463db6881284152b.tar.xz linux-dc56c0f9b870fba7a4eef2bb463db6881284152b.zip |
x86, fpu: Shift "fpu_counter = 0" from copy_thread() to arch_dup_task_struct()
Cosmetic, but I think thread.fpu_counter should be initialized in
arch_dup_task_struct() too, along with other "fpu" variables. And
probably it make sense to turn it into thread.fpu->counter.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Link: http://lkml.kernel.org/r/20140902175730.GA21669@redhat.com
Reviewed-by: Suresh Siddha <sbsiddha@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/process_64.c')
-rw-r--r-- | arch/x86/kernel/process_64.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index ca5b02d405c3..593257def776 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -163,7 +163,6 @@ int copy_thread(unsigned long clone_flags, unsigned long sp, p->thread.sp = (unsigned long) childregs; p->thread.usersp = me->thread.usersp; set_tsk_thread_flag(p, TIF_FORK); - p->thread.fpu_counter = 0; p->thread.io_bitmap_ptr = NULL; savesegment(gs, p->thread.gsindex); |