diff options
author | Wei Huang <wei.huang2@amd.com> | 2011-05-09 11:38:04 +0100 |
---|---|---|
committer | Wei Huang <wei.huang2@amd.com> | 2011-05-09 11:38:04 +0100 |
commit | 09014a12a9a2e820bc2ac2f82ff9018a69208c8c (patch) | |
tree | a5737d390078ae5708a6b92a52408a04cd11f3d1 /xen/arch/x86/acpi/suspend.c | |
parent | fb48379fc38ea90ccf58b126c8817baa17eea661 (diff) | |
download | xen-09014a12a9a2e820bc2ac2f82ff9018a69208c8c.tar.gz xen-09014a12a9a2e820bc2ac2f82ff9018a69208c8c.tar.bz2 xen-09014a12a9a2e820bc2ac2f82ff9018a69208c8c.zip |
x86/fpu: clean up FPU context save function
This patch cleans up context save function. It renames the save
function to vcpu_save_fpu() because existing function name is
confusion. It also extracts FPU context save code (fsave, fxsave,
xsave) into seperate functions. vcpu_save_fpu() will call
corresponding sub-function depending on CPU's capability.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Diffstat (limited to 'xen/arch/x86/acpi/suspend.c')
-rw-r--r-- | xen/arch/x86/acpi/suspend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/acpi/suspend.c b/xen/arch/x86/acpi/suspend.c index 66035d8ba4..d13bed0c6b 100644 --- a/xen/arch/x86/acpi/suspend.c +++ b/xen/arch/x86/acpi/suspend.c @@ -24,7 +24,7 @@ static uint16_t saved_segs[4]; void save_rest_processor_state(void) { - save_init_fpu(current); + vcpu_save_fpu(current); #if defined(CONFIG_X86_64) asm volatile ( |