diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-12-27 21:38:23 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-31 16:17:00 -0800 |
commit | fcf8e37152505e158d77da3f578b01d958a06468 (patch) | |
tree | 46ea1384cf4f45aa33e86a0374dfe157ab7e5bae /include | |
parent | 6e8aab4de7a9be8116b41c424300edb8f2ad05cf (diff) | |
download | linux-fcf8e37152505e158d77da3f578b01d958a06468.tar.gz linux-fcf8e37152505e158d77da3f578b01d958a06468.tar.bz2 linux-fcf8e37152505e158d77da3f578b01d958a06468.zip |
async: Introduce async_schedule_dev_nocall()
commit 7d4b5d7a37bdd63a5a3371b988744b060d5bb86f upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/async.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/async.h b/include/linux/async.h index cce4ad31e8fc..33c9ff4afb49 100644 --- a/include/linux/async.h +++ b/include/linux/async.h @@ -90,6 +90,8 @@ async_schedule_dev(async_func_t func, struct device *dev) return async_schedule_node(func, dev, dev_to_node(dev)); } +bool async_schedule_dev_nocall(async_func_t func, struct device *dev); + /** * async_schedule_dev_domain - A device specific version of async_schedule_domain * @func: function to execute asynchronously |