aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/suspend_64.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2008-01-30 07:31:23 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:23 -0500
commitcae4595764cb3b08f6517e99bac1e3862854b1a1 (patch)
tree7abb47b9e81fa4bcde3b6a0b98f87c5f88b5722a /arch/x86/kernel/suspend_64.c
parent3e7622f9d7807a0a826d042cafc211cd1a29448c (diff)
x86: make __{save,restore}_processor_state static
.. allowing to remove their declarations from a global include file (the symbols don't exist for anything but x86). Likewise for 64-bits' fix_processor_context(), just that that one was properly declared in an arch-specific header. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/suspend_64.c')
-rw-r--r--arch/x86/kernel/suspend_64.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86/kernel/suspend_64.c b/arch/x86/kernel/suspend_64.c
index 279c25775d1..09199511c25 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 */
18extern const void __nosave_begin, __nosave_end; 18extern const void __nosave_begin, __nosave_end;
19 19
20static void fix_processor_context(void);
21
20struct saved_context saved_context; 22struct 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 */
37void __save_processor_state(struct saved_context *ctxt) 39static 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 */
92void __restore_processor_state(struct saved_context *ctxt) 94static 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
136void fix_processor_context(void) 138static 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);