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)
commit8d89835b0467b7e618c1c93603c1aff85a0c3c66
tree87d331bf331b6c26f4ff870dd39f730b585402f5
parent928265e3601cde78c7e0a3e518a93b27defed3b1
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