x86-64: move unlazy_fpu() into lazy cpu state part of context switch
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 24 Apr 2009 07:50:27 +0000 (00:50 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 17 Jun 2009 20:21:26 +0000 (13:21 -0700)
commit16d9dbf0c2bd167fdd942b83592d59696c7b73bd
tree8d650eb7a107e1e781d2612f9109fdbf923c5cc7
parent2fcddce10f6771cfa0c56fd1e826d50d67d100b7
x86-64: move unlazy_fpu() into lazy cpu state part of context switch

Make sure that unlazy_fpu()'s stts gets batched along with the other
cpu state changes during context switch.  (32-bit already does this.)

This makes sure it gets batched when running paravirtualized.

[ 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