android_kernel_motorola_sm6225/arch
Jeremy Fitzhardinge e6e9cac8c3 x86: split out core __math_state_restore
Split the core fpu state restoration out into __math_state_restore, which
assumes that cr0.TS is clear and that the fpu context has been initialized.

This will be used during context switch.  There are two reasons this is
desireable:

- There's a small clarification.  When __switch_to() calls math_state_restore,
  it relies on the fact that tsk_used_math() returns true, and so will
  never do a blocking init_fpu().  __math_state_restore() does not have
  (or need) that logic, so the question never arises.

- It allows the clts() to be moved earler in __switch_to() so it can be performed
  while cpu context updates are batched (will be done in a later patch).

[ Impact: refactor code to make reuse cleaner; no functional change ]

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Alok Kataria <akataria@vmware.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
2009-06-17 13:21:25 -07:00
..
alpha kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
arm Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 2009-06-16 21:15:42 -07:00
avr32 mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
blackfin Merge branch 'akpm' 2009-06-16 19:50:13 -07:00
cris kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
frv mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
h8300 kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
ia64 kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
m32r kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
m68k kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
m68knommu mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
microblaze kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
mips MIPS: Add hibernation support 2009-06-17 11:06:31 +01:00
mn10300 kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
parisc kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
powerpc Merge branch 'akpm' 2009-06-16 19:50:13 -07:00
s390 Merge branch 'akpm' 2009-06-16 19:50:13 -07:00
sh kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
sparc Merge branch 'akpm' 2009-06-16 19:50:13 -07:00
um Merge branch 'akpm' 2009-06-16 19:50:13 -07:00
x86 x86: split out core __math_state_restore 2009-06-17 13:21:25 -07:00
xtensa kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
.gitignore
Kconfig mutex: have non-spinning mutexes on s390 by default 2009-04-09 19:28:24 +02:00