OSDN Git Service

cpuidle: Rearrange s2idle-specific idle state entry code
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Jun 2020 11:52:53 +0000 (13:52 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Jun 2020 11:52:53 +0000 (13:52 +0200)
commit10e8b11eb3195e11450c509d4dd3984d707a4167
tree03cd14b0f8d81868677bec9b96aef93622111687
parent81e6737518a1e392ead4e568a4ee70bb7c371458
cpuidle: Rearrange s2idle-specific idle state entry code

Implement call_cpuidle_s2idle() in analogy with call_cpuidle()
for the s2idle-specific idle state entry and invoke it from
cpuidle_idle_call() to make the s2idle-specific idle entry code
path look more similar to the "regular" idle entry one.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Chen Yu <yu.c.chen@intel.com>
drivers/cpuidle/cpuidle.c
kernel/sched/idle.c