aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/acpi/suspend.c
diff options
context:
space:
mode:
authorWei Huang <wei.huang2@amd.com>2011-05-09 11:38:04 +0100
committerWei Huang <wei.huang2@amd.com>2011-05-09 11:38:04 +0100
commit09014a12a9a2e820bc2ac2f82ff9018a69208c8c (patch)
treea5737d390078ae5708a6b92a52408a04cd11f3d1 /xen/arch/x86/acpi/suspend.c
parentfb48379fc38ea90ccf58b126c8817baa17eea661 (diff)
downloadxen-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.c2
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 (