]> 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)
commit846d74fd0d8a5db7472aa1059e60f4c94d31cf65
tree87d331bf331b6c26f4ff870dd39f730b585402f5
parent024a0ed7c89a08ac1e80aa07d66c6d644dc195f4
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