diff options
author | Andrea Arcangeli <andrea@qumranet.com> | 2008-05-01 12:43:33 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-05-04 07:44:48 -0400 |
commit | bc1a34f1bf354fabc03e3f465620c80e510d0e8f (patch) | |
tree | f16228a547097d8d7ad621064c463f3e92cc9557 /include/asm-x86/kvm_host.h | |
parent | b4f14abd95cd8d42f08438f1c4ec3eafe41054ee (diff) |
KVM: avoid fx_init() schedule in atomic
This make sure not to schedule in atomic during fx_init. I also
changed the name of fpu_init to fx_finit to avoid duplicating the name
with fpu_init that is already used in the kernel, this makes grep
simpler if nothing else.
Signed-off-by: Andrea Arcangeli <andrea@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/asm-x86/kvm_host.h')
-rw-r--r-- | include/asm-x86/kvm_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h index 4baa9c9e1f41..1d8cd01fa514 100644 --- a/include/asm-x86/kvm_host.h +++ b/include/asm-x86/kvm_host.h | |||
@@ -627,7 +627,7 @@ static inline void fx_restore(struct i387_fxsave_struct *image) | |||
627 | asm("fxrstor (%0)":: "r" (image)); | 627 | asm("fxrstor (%0)":: "r" (image)); |
628 | } | 628 | } |
629 | 629 | ||
630 | static inline void fpu_init(void) | 630 | static inline void fx_finit(void) |
631 | { | 631 | { |
632 | asm("finit"); | 632 | asm("finit"); |
633 | } | 633 | } |