main.c (9185cfa92507d07ac787bc73d06c42222eec7239) main.c (7dfb71030f7636a0d65200158113c37764552f93)
1/*
2 * kernel/power/main.c - PM subsystem core functionality.
3 *
4 * Copyright (c) 2003 Patrick Mochel
5 * Copyright (c) 2003 Open Source Development Lab
6 *
7 * This file is released under the GPLv2
8 *

--- 4 unchanged lines hidden (view full) ---

13#include <linux/string.h>
14#include <linux/delay.h>
15#include <linux/errno.h>
16#include <linux/init.h>
17#include <linux/pm.h>
18#include <linux/console.h>
19#include <linux/cpu.h>
20#include <linux/resume-trace.h>
1/*
2 * kernel/power/main.c - PM subsystem core functionality.
3 *
4 * Copyright (c) 2003 Patrick Mochel
5 * Copyright (c) 2003 Open Source Development Lab
6 *
7 * This file is released under the GPLv2
8 *

--- 4 unchanged lines hidden (view full) ---

13#include <linux/string.h>
14#include <linux/delay.h>
15#include <linux/errno.h>
16#include <linux/init.h>
17#include <linux/pm.h>
18#include <linux/console.h>
19#include <linux/cpu.h>
20#include <linux/resume-trace.h>
21#include <linux/freezer.h>
21
22#include "power.h"
23
24/*This is just an arbitrary number */
25#define FREE_PAGE_NUMBER (100)
26
27DECLARE_MUTEX(pm_sem);
28
29struct pm_ops *pm_ops;
22
23#include "power.h"
24
25/*This is just an arbitrary number */
26#define FREE_PAGE_NUMBER (100)
27
28DECLARE_MUTEX(pm_sem);
29
30struct pm_ops *pm_ops;
30suspend_disk_method_t pm_disk_mode = PM_DISK_PLATFORM;
31suspend_disk_method_t pm_disk_mode = PM_DISK_SHUTDOWN;
31
32/**
33 * pm_set_ops - Set the global power method table.
34 * @ops: Pointer to ops structure.
35 */
36
37void pm_set_ops(struct pm_ops * ops)
38{

--- 294 unchanged lines hidden ---
32
33/**
34 * pm_set_ops - Set the global power method table.
35 * @ops: Pointer to ops structure.
36 */
37
38void pm_set_ops(struct pm_ops * ops)
39{

--- 294 unchanged lines hidden ---