diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-05-16 14:17:11 +0530 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2013-09-25 00:36:46 -0700 |
commit | 7770a9d2cfcc6dfc504d21221f73a11919ed15c1 (patch) | |
tree | 5099ba6c217ce278ecf72e706ba1531ea44f47e3 /include/linux/cpufreq.h | |
parent | 4cd3c66e17f458d849e9cb98f06bb2dc48c81be8 (diff) |
cpufreq: Move get_cpu_idle_time() to cpufreq.c
Governors other than ondemand and conservative can also use get_cpu_idle_time()
and they aren't required to compile cpufreq_governor.c. So, move these
independent routines to cpufreq.c instead.
Bug 1367411
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
(cherry picked from commit a5d035da3acfefcebc2608cdc40c5f1e89784ede)
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Change-Id: I6e0c371ec345d060ea748da182524428dd6231de
Reviewed-on: http://git-master/r/276655
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 523a5fd708a4..4518817b6abb 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -338,6 +338,7 @@ const char *cpufreq_get_current_driver(void); /********************************************************************* * CPUFREQ 2.6. INTERFACE * *********************************************************************/ +u64 get_cpu_idle_time(unsigned int cpu, u64 *wall, int io_busy); int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); int cpufreq_update_policy(unsigned int cpu); bool have_governor_per_policy(void); |