x86-64: move clts into batch cpu state updates when preloading fpu
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 24 Apr 2009 08:01:01 +0000 (01:01 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 17 Jun 2009 20:27:58 +0000 (13:27 -0700)
commit17950c5b243f99cbabef173415ee988c52104d7e
treef2df6943769456b789b228243544a0307544f926
parent16d9dbf0c2bd167fdd942b83592d59696c7b73bd
x86-64: move clts into batch cpu state updates when preloading fpu

When a task is likely to be using the fpu, we preload its state during
the context switch, rather than waiting for it to run an fpu instruction.
Make sure the clts() happens while we're doing batched fpu state updates
to optimise paravirtualized context switches.

[ Impact: optimise paravirtual FPU context switch ]

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Alok Kataria <akataria@vmware.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
arch/x86/kernel/process_64.c