x86, fpu: Shift "fpu_counter = 0" from copy_thread() to arch_dup_task_struct()
authorOleg Nesterov <oleg@redhat.com>
Tue, 2 Sep 2014 17:57:30 +0000 (19:57 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 2 Sep 2014 21:51:16 +0000 (14:51 -0700)
commitdc56c0f9b870fba7a4eef2bb463db6881284152b
tree4f557f5d3cbf778b98834cc247fd82027aec4604
parent5e23fee23ea10730c752edce1777e6b7e727290f
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>
arch/x86/kernel/process.c
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c