]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / PM: Split code validating need for runtime resume in ->prepare()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 3 Oct 2017 07:11:08 +0000 (09:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 Oct 2017 13:35:50 +0000 (15:35 +0200)
commit9c5fbe960867d0cad305bbf9574fc3a2c1982373
tree881d4e72a78ce0a0a50253be633265c3c4c73a15
parent23a68a45f680f11bb1695bc69ec33a0b9ea2a701
ACPI / PM: Split code validating need for runtime resume in ->prepare()

Move the code dealing with validation of whether runtime resuming the
device is needed during system suspend.

In this way it becomes more clear for what circumstances ACPI is prevented
from trying the direct_complete path.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/device_pm.c