2011-01-14 21:12:24 +07:00
|
|
|
|
|
|
|
ccflags-$(CONFIG_PM_DEBUG) := -DDEBUG
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2016-06-02 19:20:32 +07:00
|
|
|
KASAN_SANITIZE_snapshot.o := n
|
|
|
|
|
2012-02-13 22:23:42 +07:00
|
|
|
obj-y += qos.o
|
|
|
|
obj-$(CONFIG_PM) += main.o
|
2011-09-22 03:47:55 +07:00
|
|
|
obj-$(CONFIG_VT_CONSOLE_SLEEP) += console.o
|
2009-01-07 03:14:04 +07:00
|
|
|
obj-$(CONFIG_FREEZER) += process.o
|
2009-06-10 06:27:12 +07:00
|
|
|
obj-$(CONFIG_SUSPEND) += suspend.o
|
|
|
|
obj-$(CONFIG_PM_TEST_SUSPEND) += suspend_test.o
|
2015-05-19 14:23:23 +07:00
|
|
|
obj-$(CONFIG_HIBERNATION) += hibernate.o snapshot.o swap.o user.o
|
2012-04-30 03:53:22 +07:00
|
|
|
obj-$(CONFIG_PM_AUTOSLEEP) += autosleep.o
|
PM / Sleep: Add user space interface for manipulating wakeup sources, v3
Android allows user space to manipulate wakelocks using two
sysfs file located in /sys/power/, wake_lock and wake_unlock.
Writing a wakelock name and optionally a timeout to the wake_lock
file causes the wakelock whose name was written to be acquired (it
is created before is necessary), optionally with the given timeout.
Writing the name of a wakelock to wake_unlock causes that wakelock
to be released.
Implement an analogous interface for user space using wakeup sources.
Add the /sys/power/wake_lock and /sys/power/wake_unlock files
allowing user space to create, activate and deactivate wakeup
sources, such that writing a name and optionally a timeout to
wake_lock causes the wakeup source of that name to be activated,
optionally with the given timeout. If that wakeup source doesn't
exist, it will be created and then activated. Writing a name to
wake_unlock causes the wakeup source of that name, if there is one,
to be deactivated. Wakeup sources created with the help of
wake_lock that haven't been used for more than 5 minutes are garbage
collected and destroyed. Moreover, there can be only WL_NUMBER_LIMIT
wakeup sources created with the help of wake_lock present at a time.
The data type used to track wakeup sources created by user space is
called "struct wakelock" to indicate the origins of this feature.
This version of the patch includes an rbtree manipulation fix from John Stultz.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: NeilBrown <neilb@suse.de>
2012-04-30 03:53:42 +07:00
|
|
|
obj-$(CONFIG_PM_WAKELOCKS) += wakelock.o
|
2005-06-26 04:55:06 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
obj-$(CONFIG_MAGIC_SYSRQ) += poweroff.o
|