Skip to content

Commit

Permalink
PM / Hibernate: Remove arch_prepare_suspend()
Browse files Browse the repository at this point in the history
All architectures supporting hibernation define
arch_prepare_suspend() as an empty function, so remove it.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Rafael J. Wysocki committed May 24, 2011
1 parent 4e2d949 commit 3542580
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 53 deletions.
20 changes: 0 additions & 20 deletions arch/frv/include/asm/suspend.h

This file was deleted.

2 changes: 0 additions & 2 deletions arch/mips/include/asm/suspend.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef __ASM_SUSPEND_H
#define __ASM_SUSPEND_H

static inline int arch_prepare_suspend(void) { return 0; }

/* References to section boundaries */
extern const void __nosave_begin, __nosave_end;

Expand Down
6 changes: 0 additions & 6 deletions arch/powerpc/include/asm/suspend.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/powerpc/kernel/swsusp.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/

#include <linux/sched.h>
#include <asm/suspend.h>
#include <asm/system.h>
#include <asm/current.h>
#include <asm/mmu_context.h>
Expand Down
10 changes: 0 additions & 10 deletions arch/s390/include/asm/suspend.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/sh/include/asm/suspend.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#ifndef __ASSEMBLY__
#include <linux/notifier.h>
static inline int arch_prepare_suspend(void) { return 0; }

#include <asm/ptrace.h>

Expand Down
1 change: 0 additions & 1 deletion arch/unicore32/include/asm/suspend.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#define __UNICORE_SUSPEND_H__

#ifndef __ASSEMBLY__
static inline int arch_prepare_suspend(void) { return 0; }

#include <asm/ptrace.h>

Expand Down
2 changes: 0 additions & 2 deletions arch/x86/include/asm/suspend_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include <asm/desc.h>
#include <asm/i387.h>

static inline int arch_prepare_suspend(void) { return 0; }

/* image of the saved processor state */
struct saved_context {
u16 es, fs, gs, ss;
Expand Down
5 changes: 0 additions & 5 deletions arch/x86/include/asm/suspend_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
#include <asm/desc.h>
#include <asm/i387.h>

static inline int arch_prepare_suspend(void)
{
return 0;
}

/*
* Image of the saved processor state, used by the low level ACPI suspend to
* RAM code and by the low level hibernation code.
Expand Down
5 changes: 0 additions & 5 deletions kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <linux/gfp.h>
#include <linux/syscore_ops.h>
#include <scsi/scsi_scan.h>
#include <asm/suspend.h>

#include "power.h"

Expand Down Expand Up @@ -244,10 +243,6 @@ static int create_image(int platform_mode)
{
int error;

error = arch_prepare_suspend();
if (error)
return error;

error = dpm_suspend_noirq(PMSG_FREEZE);
if (error) {
printk(KERN_ERR "PM: Some devices failed to power down, "
Expand Down

0 comments on commit 3542580

Please sign in to comment.