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>
This commit is contained in:
Andrea Arcangeli
2008-05-04 14:44:48 +03:00
committed by Avi Kivity
parent b4f14abd95
commit bc1a34f1bf
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -627,7 +627,7 @@ static inline void fx_restore(struct i387_fxsave_struct *image)
asm("fxrstor (%0)":: "r" (image));
}
static inline void fpu_init(void)
static inline void fx_finit(void)
{
asm("finit");
}