diff options
| author | Li Shaohua <shaohua.li@intel.com> | 2005-06-25 17:54:53 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:24:29 -0400 |
| commit | 6fe940d6c300886de4ff1454d8ffd363172af433 (patch) | |
| tree | 58c34aed66a85ff72bdba1d5e3a3e3c967621a04 /arch/i386/power | |
| parent | 67664c8f7e74def5adf66298a1245d82af72db2c (diff) | |
[PATCH] sep initializing rework
Make SEP init per-cpu, so it is hotplug safe.
Signed-off-by: Li Shaohua<shaohua.li@intel.com>
Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/power')
| -rw-r--r-- | arch/i386/power/cpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/i386/power/cpu.c b/arch/i386/power/cpu.c index 6f521cf19a13..d099d01461f4 100644 --- a/arch/i386/power/cpu.c +++ b/arch/i386/power/cpu.c | |||
| @@ -22,9 +22,11 @@ | |||
| 22 | #include <linux/device.h> | 22 | #include <linux/device.h> |
| 23 | #include <linux/suspend.h> | 23 | #include <linux/suspend.h> |
| 24 | #include <linux/acpi.h> | 24 | #include <linux/acpi.h> |
| 25 | |||
| 25 | #include <asm/uaccess.h> | 26 | #include <asm/uaccess.h> |
| 26 | #include <asm/acpi.h> | 27 | #include <asm/acpi.h> |
| 27 | #include <asm/tlbflush.h> | 28 | #include <asm/tlbflush.h> |
| 29 | #include <asm/processor.h> | ||
| 28 | 30 | ||
| 29 | static struct saved_context saved_context; | 31 | static struct saved_context saved_context; |
| 30 | 32 | ||
| @@ -33,8 +35,6 @@ unsigned long saved_context_esp, saved_context_ebp; | |||
| 33 | unsigned long saved_context_esi, saved_context_edi; | 35 | unsigned long saved_context_esi, saved_context_edi; |
| 34 | unsigned long saved_context_eflags; | 36 | unsigned long saved_context_eflags; |
| 35 | 37 | ||
| 36 | extern void enable_sep_cpu(void *); | ||
| 37 | |||
| 38 | void __save_processor_state(struct saved_context *ctxt) | 38 | void __save_processor_state(struct saved_context *ctxt) |
| 39 | { | 39 | { |
| 40 | kernel_fpu_begin(); | 40 | kernel_fpu_begin(); |
| @@ -136,7 +136,7 @@ void __restore_processor_state(struct saved_context *ctxt) | |||
| 136 | * sysenter MSRs | 136 | * sysenter MSRs |
| 137 | */ | 137 | */ |
| 138 | if (boot_cpu_has(X86_FEATURE_SEP)) | 138 | if (boot_cpu_has(X86_FEATURE_SEP)) |
| 139 | enable_sep_cpu(NULL); | 139 | enable_sep_cpu(); |
| 140 | 140 | ||
| 141 | fix_processor_context(); | 141 | fix_processor_context(); |
| 142 | do_fpu_end(); | 142 | do_fpu_end(); |
