]> git.baikalelectronics.ru Git - kernel.git/commit
PM: suspend: Do not pause cpuidle in the suspend-to-idle path
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 22 Oct 2021 16:04:02 +0000 (18:04 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 Oct 2021 13:52:07 +0000 (15:52 +0200)
commitf146da28dd2f056d5c54ca3e47aad377f5d2c5ec
tree87d331bf331b6c26f4ff870dd39f730b585402f5
parent9e374e4276aeaec2ddd58ca26dee7cb47057110d
PM: suspend: Do not pause cpuidle in the suspend-to-idle path

It is pointless to pause cpuidle in the suspend-to-idle path,
because it is going to be resumed in the same path later and
pausing it does not serve any particular purpose in that case.

Rework the code to avoid doing that.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/base/power/main.c
kernel/power/suspend.c