summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoonwoo Park <joonwoop@codeaurora.org>2016-03-28 14:22:52 -0700
committerKyle Yan <kyan@codeaurora.org>2016-04-27 19:13:06 -0700
commit55b8e041e6b3c2f7f093d275d6fdf00e7c673b0c (patch)
tree09ec119fd879c6b2df48a5ed4165c13eca6ab6a3 /include
parent35f1d99e0a3ad7f1b15ca2085ca92fd545dd01de (diff)
sched: take into account of limited CPU min and max frequencies
Actual CPU's min and max frequencies can be limited by hardware components while governor's not aware of. Provide an API for them to notify for scheduler to be able to notice accurate currently operating frequency boundaries which helps better task placement decision. CRs-fixed: 1006303 Change-Id: I608f5fa8b0baff8d9e998731dcddec59c9073d20 Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 5c2534a3b818..2c602da17a92 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2376,6 +2376,8 @@ extern unsigned int sched_get_static_cpu_pwr_cost(int cpu);
extern int sched_set_static_cluster_pwr_cost(int cpu, unsigned int cost);
extern unsigned int sched_get_static_cluster_pwr_cost(int cpu);
extern int sched_update_freq_max_load(const cpumask_t *cpumask);
+extern void sched_update_cpu_freq_min_max(const cpumask_t *cpus, u32 fmin, u32
+ fmax);
#else
static inline int sched_set_boost(int enable)
{
@@ -2386,6 +2388,9 @@ static inline int sched_update_freq_max_load(const cpumask_t *cpumask)
{
return 0;
}
+
+static inline void sched_update_cpu_freq_min_max(const cpumask *cpus, u32 fmin,
+ u32 fmax) { }
#endif
#ifdef CONFIG_NO_HZ_COMMON