x86: move fpu_counter into ARCH specific thread_struct
Only a couple of arches (sh/x86) use fpu_counter in task_struct so it can be moved out into ARCH specific thread_struct, reducing the size of task_struct for other arches. Compile tested i386_defconfig + gcc 4.7.3 Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Acked-by: Ingo Molnar <mingo@kernel.org> Cc: Paul Mundt <paul.mundt@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
616c05d110
commit
c375f15a43
@@ -163,7 +163,7 @@ 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->fpu_counter = 0;
|
||||
p->thread.fpu_counter = 0;
|
||||
p->thread.io_bitmap_ptr = NULL;
|
||||
|
||||
savesegment(gs, p->thread.gsindex);
|
||||
|
Reference in New Issue
Block a user