mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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>
This commit is contained in:
parent
f6783d20d4
commit
833b2ca079
@ -18,12 +18,19 @@
|
|||||||
#include <asm/xcr.h>
|
#include <asm/xcr.h>
|
||||||
#include <asm/suspend.h>
|
#include <asm/suspend.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_X86_32
|
||||||
static struct saved_context saved_context;
|
static struct saved_context saved_context;
|
||||||
|
|
||||||
unsigned long saved_context_ebx;
|
unsigned long saved_context_ebx;
|
||||||
unsigned long saved_context_esp, saved_context_ebp;
|
unsigned long saved_context_esp, saved_context_ebp;
|
||||||
unsigned long saved_context_esi, saved_context_edi;
|
unsigned long saved_context_esi, saved_context_edi;
|
||||||
unsigned long saved_context_eflags;
|
unsigned long saved_context_eflags;
|
||||||
|
#else
|
||||||
|
/* CONFIG_X86_64 */
|
||||||
|
static void fix_processor_context(void);
|
||||||
|
|
||||||
|
struct saved_context saved_context;
|
||||||
|
#endif
|
||||||
|
|
||||||
static void __save_processor_state(struct saved_context *ctxt)
|
static void __save_processor_state(struct saved_context *ctxt)
|
||||||
{
|
{
|
||||||
|
@ -19,9 +19,19 @@
|
|||||||
#include <asm/xcr.h>
|
#include <asm/xcr.h>
|
||||||
#include <asm/suspend.h>
|
#include <asm/suspend.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_X86_32
|
||||||
|
static struct saved_context saved_context;
|
||||||
|
|
||||||
|
unsigned long saved_context_ebx;
|
||||||
|
unsigned long saved_context_esp, saved_context_ebp;
|
||||||
|
unsigned long saved_context_esi, saved_context_edi;
|
||||||
|
unsigned long saved_context_eflags;
|
||||||
|
#else
|
||||||
|
/* CONFIG_X86_64 */
|
||||||
static void fix_processor_context(void);
|
static void fix_processor_context(void);
|
||||||
|
|
||||||
struct saved_context saved_context;
|
struct saved_context saved_context;
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* __save_processor_state - save CPU registers before creating a
|
* __save_processor_state - save CPU registers before creating a
|
||||||
|
Loading…
Reference in New Issue
Block a user