Linux Kernel
3.7.1
|
#include <linux/swap.h>
#include <linux/notifier.h>
#include <linux/init.h>
#include <linux/pm.h>
#include <linux/mm.h>
#include <linux/freezer.h>
#include <asm/errno.h>
Go to the source code of this file.
Data Structures | |
struct | suspend_stats |
struct | platform_suspend_ops |
struct | pbe |
struct | platform_hibernation_ops |
Macros | |
#define | PM_SUSPEND_ON ((__force suspend_state_t) 0) |
#define | PM_SUSPEND_STANDBY ((__force suspend_state_t) 1) |
#define | PM_SUSPEND_MEM ((__force suspend_state_t) 3) |
#define | PM_SUSPEND_MAX ((__force suspend_state_t) 4) |
#define | REC_FAILED_NUM 2 |
#define | suspend_valid_only_mem NULL |
#define | PM_HIBERNATION_PREPARE 0x0001 /* Going to hibernate */ |
#define | PM_POST_HIBERNATION 0x0002 /* Hibernation finished */ |
#define | PM_SUSPEND_PREPARE 0x0003 /* Going to suspend the system */ |
#define | PM_POST_SUSPEND 0x0004 /* Suspend finished */ |
#define | PM_RESTORE_PREPARE 0x0005 /* Going to restore a saved image */ |
#define | PM_POST_RESTORE 0x0006 /* Restore failed */ |
#define | pm_notifier(fn, pri) do { (void)(fn); } while (0) |
#define | pm_print_times_enabled (false) |
Typedefs | |
typedef int __bitwise | suspend_state_t |
Enumerations | |
enum | suspend_stat_step { SUSPEND_FREEZE = 1, SUSPEND_PREPARE, SUSPEND_SUSPEND, SUSPEND_SUSPEND_LATE, SUSPEND_SUSPEND_NOIRQ, SUSPEND_RESUME_NOIRQ, SUSPEND_RESUME_EARLY, SUSPEND_RESUME } |
Functions | |
void | mark_free_pages (struct zone *zone) |
Variables | |
struct suspend_stats | suspend_stats |
struct mutex | pm_mutex |
#define PM_HIBERNATION_PREPARE 0x0001 /* Going to hibernate */ |
#define PM_POST_HIBERNATION 0x0002 /* Hibernation finished */ |
#define PM_RESTORE_PREPARE 0x0005 /* Going to restore a saved image */ |
#define PM_SUSPEND_MAX ((__force suspend_state_t) 4) |
#define PM_SUSPEND_MEM ((__force suspend_state_t) 3) |
#define PM_SUSPEND_ON ((__force suspend_state_t) 0) |
#define PM_SUSPEND_PREPARE 0x0003 /* Going to suspend the system */ |
#define PM_SUSPEND_STANDBY ((__force suspend_state_t) 1) |
typedef int __bitwise suspend_state_t |
enum suspend_stat_step |