async: Introduce async_schedule_dev_nocall()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Dec 2023 20:38:23 +0000 (21:38 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Jan 2024 10:31:12 +0000 (11:31 +0100)
commit7d4b5d7a37bdd63a5a3371b988744b060d5bb86f
tree4a34c063468f1c17bdaca6aece40caf957543c9e
parent6aa09a5bccd8e224d917afdb4c278fc66aacde4d
async: Introduce async_schedule_dev_nocall()

In preparation for subsequent changes, introduce a specialized variant
of async_schedule_dev() that will not invoke the argument function
synchronously when it cannot be scheduled for asynchronous execution.

The new function, async_schedule_dev_nocall(), will be used for fixing
possible deadlocks in the system-wide power management core code.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> for the series.
Tested-by: Youngmin Nam <youngmin.nam@samsung.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
include/linux/async.h
kernel/async.c