Ingo Molnar aeb997b9f2 x86/fpu: Change fpu->fpregs_active from 'int' to 'char', add lazy switching comments
Improve the memory layout of 'struct fpu':

 - change ->fpregs_active from 'int' to 'char' - it's just a single flag
   and modern x86 CPUs can do efficient byte accesses.

 - pack related fields closer to each other: often 'fpu->state' will not be
   touched, while the other fields will - so pack them into a group.

Also add comments to each field, describing their purpose, and add
some background information about lazy restores.

Also fix an obsolete, lazy switching related comment in fpu_copy()'s description.

Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
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>
2015-05-19 15:48:09 +02:00
..
2014-12-11 11:35:02 +01:00
2015-04-14 16:49:06 -07:00
2015-05-19 15:47:30 +02:00
2014-05-02 11:34:17 -07:00
2012-03-28 18:11:12 +01:00
2014-03-04 21:47:51 +01:00
2011-04-18 09:26:48 -07:00
2014-05-08 08:15:34 +02:00
2013-02-03 18:16:27 -05:00
2009-08-27 00:35:56 +02:00
2010-10-26 16:52:08 -07:00
2012-06-25 13:48:30 +02:00
2015-02-13 21:21:41 -08:00
2014-09-22 13:35:52 +02:00
2009-06-13 15:37:30 +02:00
2015-05-19 15:47:51 +02:00
2010-06-09 11:12:36 +02:00
2014-02-27 08:07:39 -08:00
2014-09-01 10:15:31 +02:00
2014-10-28 10:47:56 +01:00
2011-03-15 15:34:15 -07:00
2012-02-20 12:52:05 -08:00
2014-06-06 16:08:11 -07:00
2015-05-19 15:47:30 +02:00
2015-02-23 13:44:14 +01:00
2014-06-04 16:53:57 -07:00
2014-04-18 14:20:46 +02:00
2015-01-13 15:22:59 +02:00
2015-01-30 09:39:54 +01:00
2015-05-19 15:47:30 +02:00
2015-05-19 15:47:30 +02:00
2015-05-19 15:47:30 +02:00