diff options
author | Vineet Gupta <Vineet.Gupta1@synopsys.com> | 2013-11-12 18:08:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 22:09:13 -0500 |
commit | 616c05d110bb4ef8203f49c9d2476874077c2f6a (patch) | |
tree | eb5bc88a430509fcdb8afe8ee9f344c903d1894d /arch/sh/kernel/cpu | |
parent | 261adc9a609dbfde815337889b9e2c8728959ab8 (diff) |
sh: 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 sh defconfig + sh4-linux-gcc (4.6.3)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Paul Mundt <paul.mundt@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sh/kernel/cpu')
-rw-r--r-- | arch/sh/kernel/cpu/fpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/fpu.c b/arch/sh/kernel/cpu/fpu.c index f8f7af51c128..4e332244ea75 100644 --- a/arch/sh/kernel/cpu/fpu.c +++ b/arch/sh/kernel/cpu/fpu.c | |||
@@ -44,7 +44,7 @@ void __fpu_state_restore(void) | |||
44 | restore_fpu(tsk); | 44 | restore_fpu(tsk); |
45 | 45 | ||
46 | task_thread_info(tsk)->status |= TS_USEDFPU; | 46 | task_thread_info(tsk)->status |= TS_USEDFPU; |
47 | tsk->fpu_counter++; | 47 | tsk->thread.fpu_counter++; |
48 | } | 48 | } |
49 | 49 | ||
50 | void fpu_state_restore(struct pt_regs *regs) | 50 | void fpu_state_restore(struct pt_regs *regs) |