x86/fpu: Improve the comment for the fpu::counter field

This was pretty hard to read, improve it.

Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
Ingo Molnar 2015-04-22 09:57:24 +02:00
parent c0c2803dee
commit 126009993f
1 changed files with 5 additions and 5 deletions

View File

@ -435,11 +435,11 @@ struct fpu {
union thread_xstate *state; union thread_xstate *state;
/* /*
* This counter contains the number of consecutive context switches * This counter contains the number of consecutive context switches
* that the FPU is used. If this is over a threshold, the lazy fpu * during which the FPU stays used. If this is over a threshold, the
* saving becomes unlazy to save the trap. This is an unsigned char * lazy fpu saving logic becomes unlazy, to save the trap overhead.
* so that after 256 times the counter wraps and the behavior turns * This is an unsigned char so that after 256 iterations the counter
* lazy again; this to deal with bursty apps that only use FPU for * wraps and the context switch behavior turns lazy again; this is to
* a short time * deal with bursty apps that only use the FPU for a short time:
*/ */
unsigned char counter; unsigned char counter;
}; };