mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
firmware: use power efficient workqueue for unloading and aborting fw load
Allow the scheduler to select the most appropriate CPU for running the firmware load timeout routine and delayed routine for firmware unload. This extends idle residency times and conserves power. This functionality is enabled when CONFIG_WQ_POWER_EFFICIENT is selected. Cc: Ming Lei <ming.lei@canonical.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Shaibal Dutta <shaibal.dutta@broadcom.com> [zoran.markovic@linaro.org: Rebased to latest kernel, added commit message. Fixed code alignment.] Signed-off-by: Zoran Markovic <zoran.markovic@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f6ff72282a
commit
6c55d99b51
1 changed files with 4 additions and 3 deletions
|
@ -1067,7 +1067,8 @@ static int _request_firmware_load(struct firmware_priv *fw_priv, bool uevent,
|
|||
dev_set_uevent_suppress(f_dev, false);
|
||||
dev_dbg(f_dev, "firmware: requesting %s\n", buf->fw_id);
|
||||
if (timeout != MAX_SCHEDULE_TIMEOUT)
|
||||
schedule_delayed_work(&fw_priv->timeout_work, timeout);
|
||||
queue_delayed_work(system_power_efficient_wq,
|
||||
&fw_priv->timeout_work, timeout);
|
||||
|
||||
kobject_uevent(&fw_priv->dev.kobj, KOBJ_ADD);
|
||||
}
|
||||
|
@ -1772,7 +1773,7 @@ static void device_uncache_fw_images_work(struct work_struct *work)
|
|||
*/
|
||||
static void device_uncache_fw_images_delay(unsigned long delay)
|
||||
{
|
||||
schedule_delayed_work(&fw_cache.work,
|
||||
queue_delayed_work(system_power_efficient_wq, &fw_cache.work,
|
||||
msecs_to_jiffies(delay));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue