summaryrefslogtreecommitdiffstats
path: root/kernel/power/power.h
diff options
context:
space:
mode:
authorStrashko, Grygorii <grygorii.strashko@ti.com>2015-11-10 10:42:34 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-11-30 14:47:22 +0100
commit013c074f8642d8e815ad670601f8e27155a74b57 (patch)
tree66eb244459aa071de90db3cb258370e7aeb1e910 /kernel/power/power.h
parentLinux 4.4-rc3 (diff)
downloadlinux-013c074f8642d8e815ad670601f8e27155a74b57.tar.xz
linux-013c074f8642d8e815ad670601f8e27155a74b57.zip
PM / sleep: prohibit devices probing during suspend/hibernation
It is unsafe [1] if probing of devices will happen during suspend or hibernation and system behavior will be unpredictable in this case. So, let's prohibit device's probing in dpm_prepare() and defer their probing instead. The normal behavior will be restored in dpm_complete(). This patch introduces new DD core APIs: device_block_probing() It will disable probing of devices and defer their probes instead. device_unblock_probing() It will restore normal behavior and trigger re-probing of deferred devices. [1] https://lkml.org/lkml/2015/9/11/554 Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power/power.h')
0 files changed, 0 insertions, 0 deletions