aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSergio Luis <sergio@larces.uece.br>2009-04-27 18:26:50 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2009-06-12 15:32:30 -0400
commit833b2ca0795526898a66c7b6770273bb16567e19 (patch)
treeacc8ab4f3d352717a45fc1ee7a2923ef1b99ff79 /arch/x86
parentf6783d20d4b85b360b4a6f86bdbd9282a4a7004c (diff)
x86: unify power/cpu_(32|64) global variables
Aiming total unification of cpu_32.c and cpu_64.c, in this step we do unify the global variables and existing forward declarations for such files. Signed-off-by: Sergio Luis <sergio@larces.uece.br> Signed-off-by: Lauro Salmito <laurosalmito@gmail.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/power/cpu_32.c7
-rw-r--r--arch/x86/power/cpu_64.c10
2 files changed, 17 insertions, 0 deletions
diff --git a/arch/x86/power/cpu_32.c b/arch/x86/power/cpu_32.c
index 12a9c871d2ec..de1a86b2cffa 100644
--- a/arch/x86/power/cpu_32.c
+++ b/arch/x86/power/cpu_32.c
@@ -18,12 +18,19 @@
18#include <asm/xcr.h> 18#include <asm/xcr.h>
19#include <asm/suspend.h> 19#include <asm/suspend.h>
20 20
21#ifdef CONFIG_X86_32
21static struct saved_context saved_context; 22static struct saved_context saved_context;
22 23
23unsigned long saved_context_ebx; 24unsigned long saved_context_ebx;
24unsigned long saved_context_esp, saved_context_ebp; 25unsigned long saved_context_esp, saved_context_ebp;
25unsigned long saved_context_esi, saved_context_edi; 26unsigned long saved_context_esi, saved_context_edi;
26unsigned long saved_context_eflags; 27unsigned long saved_context_eflags;
28#else
29/* CONFIG_X86_64 */
30static void fix_processor_context(void);
31
32struct saved_context saved_context;
33#endif
27 34
28static void __save_processor_state(struct saved_context *ctxt) 35static void __save_processor_state(struct saved_context *ctxt)
29{ 36{
diff --git a/arch/x86/power/cpu_64.c b/arch/x86/power/cpu_64.c
index 39b27b72e3c5..6ce0eca847c3 100644
--- a/arch/x86/power/cpu_64.c
+++ b/arch/x86/power/cpu_64.c
@@ -19,9 +19,19 @@
19#include <asm/xcr.h> 19#include <asm/xcr.h>
20#include <asm/suspend.h> 20#include <asm/suspend.h>
21 21
22#ifdef CONFIG_X86_32
23static struct saved_context saved_context;
24
25unsigned long saved_context_ebx;
26unsigned long saved_context_esp, saved_context_ebp;
27unsigned long saved_context_esi, saved_context_edi;
28unsigned long saved_context_eflags;
29#else
30/* CONFIG_X86_64 */
22static void fix_processor_context(void); 31static void fix_processor_context(void);
23 32
24struct saved_context saved_context; 33struct saved_context saved_context;
34#endif
25 35
26/** 36/**
27 * __save_processor_state - save CPU registers before creating a 37 * __save_processor_state - save CPU registers before creating a