Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259007
b: refs/heads/master
c: 35eb6db
h: refs/heads/master
i:
  259005: 6fc0567
  259003: a0b0dbb
  258999: 7134323
  258991: 09478d8
  258975: 63a7284
  258943: d7d5e59
v: v3
  • Loading branch information
Amerigo Wang authored and Linus Torvalds committed Jul 26, 2011
1 parent 164f0b8 commit 8838eee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 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: c5f41752fd37979dbaec61dc59c7ece0606ddf7e
refs/heads/master: 35eb6db11ed9cbf9702ec90a28779a51fe4a21a9
1 change: 1 addition & 0 deletions trunk/drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <linux/log2.h>
#include <linux/regulator/consumer.h>
#include <linux/pm_runtime.h>
#include <linux/suspend.h>

#include <linux/mmc/card.h>
#include <linux/mmc/host.h>
Expand Down
10 changes: 2 additions & 8 deletions trunk/include/linux/notifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,9 @@ static inline int notifier_to_errno(int ret)

/* reboot notifiers are defined in include/linux/reboot.h. */

#define NETLINK_URELEASE 0x0001 /* Unicast netlink socket released */
/* Hibernation and suspend events are defined in include/linux/suspend.h. */

/* Hibernation and suspend events */
#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 NETLINK_URELEASE 0x0001 /* Unicast netlink socket released */

/* Console keyboard events.
* Note: KBD_KEYCODE is always sent before KBD_UNBOUND_KEYCODE, KBD_UNICODE and
Expand Down
8 changes: 8 additions & 0 deletions trunk/include/linux/suspend.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,14 @@ static inline int hibernate(void) { return -ENOSYS; }
static inline bool system_entering_hibernation(void) { return false; }
#endif /* CONFIG_HIBERNATION */

/* Hibernation and suspend events */
#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 */

#ifdef CONFIG_PM_SLEEP
void save_processor_state(void);
void restore_processor_state(void);
Expand Down

0 comments on commit 8838eee

Please sign in to comment.