[PATCH v2 6/7] x86, fpu: shift "fpu_counter = 0" from copy_thread() to arch_dup_task_struct()

2014-09-02 Thread Oleg Nesterov
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 Reviewed-by: Suresh Siddha --- arch/x86/kernel/process.c|1 +

[PATCH v2 6/7] x86, fpu: shift fpu_counter = 0 from copy_thread() to arch_dup_task_struct()

2014-09-02 Thread Oleg Nesterov
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 o...@redhat.com Reviewed-by: Suresh Siddha sbsid...@gmail.com ---