diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-01-15 23:17:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-02-01 18:30:58 -0500 |
commit | b28f508112c584cdfbb4d8a9489cc4b79dac68ee (patch) | |
tree | 8269d53055d0368f6eb25fac6b9d29077382cbca /kernel/power/power.h | |
parent | c9b6c8f68ee48e1e3dbb53e13316757e2c0b584d (diff) | |
download | kernel_samsung_aries-b28f508112c584cdfbb4d8a9489cc4b79dac68ee.zip kernel_samsung_aries-b28f508112c584cdfbb4d8a9489cc4b79dac68ee.tar.gz kernel_samsung_aries-b28f508112c584cdfbb4d8a9489cc4b79dac68ee.tar.bz2 |
Suspend: Add config option to disable the freezer if architecture wants that
This patch makes the freezer optional for suspend to allow the
system to work (or not work) like the original PMU suspend.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index 8ec5499..700f44e 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h @@ -1,6 +1,7 @@ #include <linux/suspend.h> #include <linux/suspend_ioctls.h> #include <linux/utsname.h> +#include <linux/freezer.h> struct swsusp_info { struct new_utsname uts; @@ -203,3 +204,24 @@ enum { #define TEST_MAX (__TEST_AFTER_LAST - 1) extern int pm_test_level; + +#ifdef CONFIG_SUSPEND_FREEZER +static inline int suspend_freeze_processes(void) +{ + return freeze_processes(); +} + +static inline void suspend_thaw_processes(void) +{ + thaw_processes(); +} +#else +static inline int suspend_freeze_processes(void) +{ + return 0; +} + +static inline void suspend_thaw_processes(void) +{ +} +#endif |