diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/suspend_64.c | 8 | ||||
-rw-r--r-- | arch/x86/power/cpu.c | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/arch/x86/kernel/suspend_64.c b/arch/x86/kernel/suspend_64.c index 279c25775d19..09199511c256 100644 --- a/arch/x86/kernel/suspend_64.c +++ b/arch/x86/kernel/suspend_64.c | |||
@@ -17,6 +17,8 @@ | |||
17 | /* References to section boundaries */ | 17 | /* References to section boundaries */ |
18 | extern const void __nosave_begin, __nosave_end; | 18 | extern const void __nosave_begin, __nosave_end; |
19 | 19 | ||
20 | static void fix_processor_context(void); | ||
21 | |||
20 | struct saved_context saved_context; | 22 | struct saved_context saved_context; |
21 | 23 | ||
22 | /** | 24 | /** |
@@ -34,7 +36,7 @@ struct saved_context saved_context; | |||
34 | * needed by kernel A, so that it can operate correctly after the resume | 36 | * needed by kernel A, so that it can operate correctly after the resume |
35 | * regardless of what kernel B does in the meantime. | 37 | * regardless of what kernel B does in the meantime. |
36 | */ | 38 | */ |
37 | void __save_processor_state(struct saved_context *ctxt) | 39 | static void __save_processor_state(struct saved_context *ctxt) |
38 | { | 40 | { |
39 | kernel_fpu_begin(); | 41 | kernel_fpu_begin(); |
40 | 42 | ||
@@ -89,7 +91,7 @@ static void do_fpu_end(void) | |||
89 | * by __save_processor_state() | 91 | * by __save_processor_state() |
90 | * @ctxt - structure to load the registers contents from | 92 | * @ctxt - structure to load the registers contents from |
91 | */ | 93 | */ |
92 | void __restore_processor_state(struct saved_context *ctxt) | 94 | static void __restore_processor_state(struct saved_context *ctxt) |
93 | { | 95 | { |
94 | /* | 96 | /* |
95 | * control registers | 97 | * control registers |
@@ -133,7 +135,7 @@ void restore_processor_state(void) | |||
133 | __restore_processor_state(&saved_context); | 135 | __restore_processor_state(&saved_context); |
134 | } | 136 | } |
135 | 137 | ||
136 | void fix_processor_context(void) | 138 | static void fix_processor_context(void) |
137 | { | 139 | { |
138 | int cpu = smp_processor_id(); | 140 | int cpu = smp_processor_id(); |
139 | struct tss_struct *t = &per_cpu(init_tss, cpu); | 141 | struct tss_struct *t = &per_cpu(init_tss, cpu); |
diff --git a/arch/x86/power/cpu.c b/arch/x86/power/cpu.c index 5a98dc35addf..efcf620d1439 100644 --- a/arch/x86/power/cpu.c +++ b/arch/x86/power/cpu.c | |||
@@ -19,7 +19,7 @@ unsigned long saved_context_esp, saved_context_ebp; | |||
19 | unsigned long saved_context_esi, saved_context_edi; | 19 | unsigned long saved_context_esi, saved_context_edi; |
20 | unsigned long saved_context_eflags; | 20 | unsigned long saved_context_eflags; |
21 | 21 | ||
22 | void __save_processor_state(struct saved_context *ctxt) | 22 | static void __save_processor_state(struct saved_context *ctxt) |
23 | { | 23 | { |
24 | mtrr_save_fixed_ranges(NULL); | 24 | mtrr_save_fixed_ranges(NULL); |
25 | kernel_fpu_begin(); | 25 | kernel_fpu_begin(); |
@@ -86,7 +86,7 @@ static void fix_processor_context(void) | |||
86 | 86 | ||
87 | } | 87 | } |
88 | 88 | ||
89 | void __restore_processor_state(struct saved_context *ctxt) | 89 | static void __restore_processor_state(struct saved_context *ctxt) |
90 | { | 90 | { |
91 | /* | 91 | /* |
92 | * control registers | 92 | * control registers |