diff options
author | Fieah Lim <kw@fieahl.im> | 2018-09-11 03:59:01 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-09-18 09:24:44 +0200 |
commit | 6a5f95b5a4f4ff29e4071bc5b95f8f3a2aef046b (patch) | |
tree | b171d127e077b9779b96575704dc4b5a46bb744e /include/linux/cpuidle.h | |
parent | a4a008e53c9e5ac8d6070bd1b2eddfc1ae0d2338 (diff) | |
download | linux-6a5f95b5a4f4ff29e4071bc5b95f8f3a2aef046b.tar.gz linux-6a5f95b5a4f4ff29e4071bc5b95f8f3a2aef046b.tar.bz2 linux-6a5f95b5a4f4ff29e4071bc5b95f8f3a2aef046b.zip |
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>
Diffstat (limited to 'include/linux/cpuidle.h')
-rw-r--r-- | include/linux/cpuidle.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 4325d6fdde9b..d262f620890e 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -99,16 +99,6 @@ struct cpuidle_device { DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices); DECLARE_PER_CPU(struct cpuidle_device, cpuidle_dev); -/** - * cpuidle_get_last_residency - retrieves the last state's residency time - * @dev: the target CPU - */ -static inline int cpuidle_get_last_residency(struct cpuidle_device *dev) -{ - return dev->last_residency; -} - - /**************************** * CPUIDLE DRIVER INTERFACE * ****************************/ |