Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80013
b: refs/heads/master
c: cae4595
h: refs/heads/master
i:
  80011: 000da94
v: v3
  • Loading branch information
Jan Beulich authored and Ingo Molnar committed Jan 30, 2008
1 parent eb8b031 commit a070905
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3e7622f9d7807a0a826d042cafc211cd1a29448c
refs/heads/master: cae4595764cb3b08f6517e99bac1e3862854b1a1
8 changes: 5 additions & 3 deletions trunk/arch/x86/kernel/suspend_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
/* References to section boundaries */
extern const void __nosave_begin, __nosave_end;

static void fix_processor_context(void);

struct saved_context saved_context;

/**
Expand All @@ -34,7 +36,7 @@ struct saved_context saved_context;
* needed by kernel A, so that it can operate correctly after the resume
* regardless of what kernel B does in the meantime.
*/
void __save_processor_state(struct saved_context *ctxt)
static void __save_processor_state(struct saved_context *ctxt)
{
kernel_fpu_begin();

Expand Down Expand Up @@ -89,7 +91,7 @@ static void do_fpu_end(void)
* by __save_processor_state()
* @ctxt - structure to load the registers contents from
*/
void __restore_processor_state(struct saved_context *ctxt)
static void __restore_processor_state(struct saved_context *ctxt)
{
/*
* control registers
Expand Down Expand Up @@ -133,7 +135,7 @@ void restore_processor_state(void)
__restore_processor_state(&saved_context);
}

void fix_processor_context(void)
static void fix_processor_context(void)
{
int cpu = smp_processor_id();
struct tss_struct *t = &per_cpu(init_tss, cpu);
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/power/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ unsigned long saved_context_esp, saved_context_ebp;
unsigned long saved_context_esi, saved_context_edi;
unsigned long saved_context_eflags;

void __save_processor_state(struct saved_context *ctxt)
static void __save_processor_state(struct saved_context *ctxt)
{
mtrr_save_fixed_ranges(NULL);
kernel_fpu_begin();
Expand Down Expand Up @@ -86,7 +86,7 @@ static void fix_processor_context(void)

}

void __restore_processor_state(struct saved_context *ctxt)
static void __restore_processor_state(struct saved_context *ctxt)
{
/*
* control registers
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-x86/suspend_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ struct saved_context {
#define loaddebug(thread,register) \
set_debugreg((thread)->debugreg##register, register)

extern void fix_processor_context(void);

/* routines for saving/restoring kernel state */
extern int acpi_save_state_mem(void);
extern char core_restore_code;
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/linux/suspend.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@ static inline int hibernate(void) { return -ENOSYS; }
#ifdef CONFIG_PM_SLEEP
void save_processor_state(void);
void restore_processor_state(void);
struct saved_context;
void __save_processor_state(struct saved_context *ctxt);
void __restore_processor_state(struct saved_context *ctxt);

/* kernel/power/main.c */
extern struct blocking_notifier_head pm_chain_head;
Expand Down

0 comments on commit a070905

Please sign in to comment.