Skip to content

Commit 27f69e6

Browse files
Vineet Guptatorvalds
authored andcommitted
sched: remove ARCH specific fpu_counter from task_struct
fpu_counter in task_struct was used only by sh/x86. Both of these now carry it in ARCH specific thread_struct, hence this can now be removed from generic task_struct, shrinking it slightly for other arches. Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Cc: 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>
1 parent c375f15 commit 27f69e6

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎include/linux/sched.h‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,15 +1062,6 @@ struct task_struct {
10621062
struct hlist_head preempt_notifiers;
10631063
#endif
10641064

1065-
/*
1066-
* fpu_counter contains the number of consecutive context switches
1067-
* that the FPU is used. If this is over a threshold, the lazy fpu
1068-
* saving becomes unlazy to save the trap. This is an unsigned char
1069-
* so that after 256 times the counter wraps and the behavior turns
1070-
* lazy again; this to deal with bursty apps that only use FPU for
1071-
* a short time
1072-
*/
1073-
unsigned char fpu_counter;
10741065
#ifdef CONFIG_BLK_DEV_IO_TRACE
10751066
unsigned int btrace_seq;
10761067
#endif

0 commit comments

Comments
 (0)