x86/fpu: Improve the comment for the fpu::counter field
authorIngo Molnar <[email protected]>
Wed, 22 Apr 2015 07:57:24 +0000 (09:57 +0200)
committerIngo Molnar <[email protected]>
Tue, 19 May 2015 13:47:14 +0000 (15:47 +0200)
This was pretty hard to read, improve it.

Reviewed-by: Borislav Petkov <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/include/asm/processor.h

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