cpuidle: Remove unnecessary wrapper cpuidle_get_last_residency()
authorFieah Lim <kw@fieahl.im>
Mon, 10 Sep 2018 19:59:01 +0000 (03:59 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 18 Sep 2018 07:24:44 +0000 (09:24 +0200)
commit6a5f95b5a4f4ff29e4071bc5b95f8f3a2aef046b
treeb171d127e077b9779b96575704dc4b5a46bb744e
parenta4a008e53c9e5ac8d6070bd1b2eddfc1ae0d2338
cpuidle: Remove unnecessary wrapper cpuidle_get_last_residency()

cpuidle_get_last_residency() is just a wrapper for retrieving
the last_residency member of struct cpuidle_device.  It's also
weirdly the only wrapper function for accessing cpuidle_* struct
member (by my best guess is it could be a leftover from v2.x).

Anyhow, since the only two users (the ladder and menu governors)
can access dev->last_residency directly, and it's more intuitive to
do it that way, let's just get rid of the wrapper.

This patch tidies up CPU idle code a bit without functional changes.

Signed-off-by: Fieah Lim <kw@fieahl.im>
[ rjw: Changelog cleanup ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/governors/ladder.c
drivers/cpuidle/governors/menu.c
include/linux/cpuidle.h