diff options
Diffstat (limited to 'arch/sh/include/asm/processor_32.h')
-rw-r--r-- | arch/sh/include/asm/processor_32.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sh/include/asm/processor_32.h b/arch/sh/include/asm/processor_32.h index e699a12cdcca..18e0377f72bb 100644 --- a/arch/sh/include/asm/processor_32.h +++ b/arch/sh/include/asm/processor_32.h | |||
@@ -111,6 +111,16 @@ struct thread_struct { | |||
111 | 111 | ||
112 | /* Extended processor state */ | 112 | /* Extended processor state */ |
113 | union thread_xstate *xstate; | 113 | union thread_xstate *xstate; |
114 | |||
115 | /* | ||
116 | * fpu_counter contains the number of consecutive context switches | ||
117 | * that the FPU is used. If this is over a threshold, the lazy fpu | ||
118 | * saving becomes unlazy to save the trap. This is an unsigned char | ||
119 | * so that after 256 times the counter wraps and the behavior turns | ||
120 | * lazy again; this to deal with bursty apps that only use FPU for | ||
121 | * a short time | ||
122 | */ | ||
123 | unsigned char fpu_counter; | ||
114 | }; | 124 | }; |
115 | 125 | ||
116 | #define INIT_THREAD { \ | 126 | #define INIT_THREAD { \ |