diff options
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r-- | arch/x86/include/asm/processor.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 987c75ecc334..7b034a4057f9 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
@@ -488,6 +488,15 @@ struct thread_struct { | |||
488 | unsigned long iopl; | 488 | unsigned long iopl; |
489 | /* Max allowed port in the bitmap, in bytes: */ | 489 | /* Max allowed port in the bitmap, in bytes: */ |
490 | unsigned io_bitmap_max; | 490 | unsigned io_bitmap_max; |
491 | /* | ||
492 | * fpu_counter contains the number of consecutive context switches | ||
493 | * that the FPU is used. If this is over a threshold, the lazy fpu | ||
494 | * saving becomes unlazy to save the trap. This is an unsigned char | ||
495 | * so that after 256 times the counter wraps and the behavior turns | ||
496 | * lazy again; this to deal with bursty apps that only use FPU for | ||
497 | * a short time | ||
498 | */ | ||
499 | unsigned char fpu_counter; | ||
491 | }; | 500 | }; |
492 | 501 | ||
493 | /* | 502 | /* |