commit | 4bf236a3330e97d275e5848420f7e31948fef07a | [log] [tgz] |
---|---|---|
author | Bart Van Assche <bart.vanassche@wdc.com> | Fri Jan 05 09:19:08 2018 -0800 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Jan 10 01:07:46 2018 +0100 |
tree | 0be93c72c34a05451c4fd8bdb9c57d84dd06720a | |
parent | bdbc98abb3aa323f6323b11db39c740e6f8fc5b1 [diff] |
PM / sleep: Make lock/unlock_system_sleep() available to kernel modules Since pm_mutex is not exported using lock/unlock_system_sleep() from inside a kernel module causes a "pm_mutex undefined" linker error. Hence move lock/unlock_system_sleep() into kernel/power/main.c and export these. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>