diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-04-22 07:16:47 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-05-19 09:47:18 -0400 |
commit | 3a0aee4801d475b64a408539c01ec0d17d52192b (patch) | |
tree | d73a8d2e97069b135cc3a79508d5d8de37fde4c2 /drivers/lguest | |
parent | 93b90712c64ca2db4b39fcb2e7dffcf0d478468d (diff) |
x86/fpu: Rename math_state_restore() to fpu__restore()
Move to the new fpu__*() namespace.
Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/lguest')
-rw-r--r-- | drivers/lguest/x86/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c index 30f2aef69d78..bcb534a5512d 100644 --- a/drivers/lguest/x86/core.c +++ b/drivers/lguest/x86/core.c | |||
@@ -297,12 +297,12 @@ void lguest_arch_run_guest(struct lg_cpu *cpu) | |||
297 | /* | 297 | /* |
298 | * Similarly, if we took a trap because the Guest used the FPU, | 298 | * Similarly, if we took a trap because the Guest used the FPU, |
299 | * we have to restore the FPU it expects to see. | 299 | * we have to restore the FPU it expects to see. |
300 | * math_state_restore() may sleep and we may even move off to | 300 | * fpu__restore() may sleep and we may even move off to |
301 | * a different CPU. So all the critical stuff should be done | 301 | * a different CPU. So all the critical stuff should be done |
302 | * before this. | 302 | * before this. |
303 | */ | 303 | */ |
304 | else if (cpu->regs->trapnum == 7 && !user_has_fpu()) | 304 | else if (cpu->regs->trapnum == 7 && !user_has_fpu()) |
305 | math_state_restore(); | 305 | fpu__restore(); |
306 | } | 306 | } |
307 | 307 | ||
308 | /*H:130 | 308 | /*H:130 |