Patch "PM: sleep: core: Switch back to async_schedule_dev()" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    PM: sleep: core: Switch back to async_schedule_dev()

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     pm-sleep-core-switch-back-to-async_schedule_dev.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0f966a63131d2524e00b2117f3cf9fce9c3c52ea
Author: Kai-Heng Feng <kai.heng.feng@xxxxxxxxxxxxx>
Date:   Tue Apr 21 16:21:55 2020 +0800

    PM: sleep: core: Switch back to async_schedule_dev()
    
    commit 09beebd8f93b3c8bf894e342f0a203a5c612478c upstream.
    
    Commit 8b9ec6b73277 ("PM core: Use new async_schedule_dev command")
    introduced a new function for better performance.
    
    However commit f2a424f6c613 ("PM / core: Introduce dpm_async_fn()
    helper") went back to the non-optimized version, async_schedule().
    
    So switch back to the sync_schedule_dev() to improve performance
    
    Fixes: f2a424f6c613 ("PM / core: Introduce dpm_async_fn() helper")
    Signed-off-by: Kai-Heng Feng <kai.heng.feng@xxxxxxxxxxxxx>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index 0e99a760aebd0..8646147dc1946 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -726,7 +726,7 @@ static bool dpm_async_fn(struct device *dev, async_func_t func)
 
 	if (is_async(dev)) {
 		get_device(dev);
-		async_schedule(func, dev);
+		async_schedule_dev(func, dev);
 		return true;
 	}
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux