aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/pm_wakeup.h
diff options
context:
space:
mode:
authorTri Vo <trong@android.com>2019-08-06 18:48:45 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-08-21 00:20:40 +0200
commit2434aea58e652a9fe114181ac90aa60e2f2e1b25 (patch)
treea5f35f8ca4d5a821bd66d6d8d0d874927e390c26 /include/linux/pm_wakeup.h
parentPM / wakeup: Drop wakeup_source_init(), wakeup_source_prepare() (diff)
downloadwireguard-linux-2434aea58e652a9fe114181ac90aa60e2f2e1b25.tar.xz
wireguard-linux-2434aea58e652a9fe114181ac90aa60e2f2e1b25.zip
PM / wakeup: Use wakeup_source_register() in wakelock.c
kernel/power/wakelock.c duplicates wakeup source creation and registration code from drivers/base/power/wakeup.c. Change struct wakelock's wakeup source to a pointer and use wakeup_source_register() function to create and register said wakeup source. Use wakeup_source_unregister() on cleanup path. Signed-off-by: Tri Vo <trong@android.com> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pm_wakeup.h')
0 files changed, 0 insertions, 0 deletions