summaryrefslogtreecommitdiff
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
authorSyed Rameez Mustafa <rameezmustafa@codeaurora.org>2015-06-19 15:30:32 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:02:21 -0700
commitca42a1bec8eedc327d4986479349cdc16ff7661c (patch)
treef975563735fa2070c20179ee6319554651557fdb /kernel/sched/sched.h
parent87fe20de7e7c54fd00a1acea8e84a70756bf9922 (diff)
sched: add frequency zone awareness to the load balancer
Add zone awareness to the load balancer. Remove all earlier restrictions that the load balancer had for inter cluster kicks and migration. Change-Id: I12ad3d0c2d2e9bb498f49a231810f2ad418b061f Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org> [joonwoop@codeaurora.org: fixed minor conflict in nohz_kick_needed() due to its return type change.] Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r--kernel/sched/sched.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 745b26b865e0..23376b43777d 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -954,6 +954,7 @@ extern int group_balance_cpu(struct sched_group *sg);
* well with groups where rq capacity can change independently.
*/
#define group_rq_capacity(group) capacity(cpu_rq(group_first_cpu(group)))
+#define group_rq_mpc(group) max_poss_capacity(cpu_rq(group_first_cpu(group)))
#else
@@ -1025,6 +1026,11 @@ static inline int capacity(struct rq *rq)
{
return rq->capacity;
}
+static inline int max_poss_capacity(struct rq *rq)
+{
+ return rq->max_possible_capacity;
+}
+
static inline void
inc_cumulative_runnable_avg(struct hmp_sched_stats *stats,
@@ -1132,6 +1138,12 @@ static inline int capacity(struct rq *rq)
return SCHED_LOAD_SCALE;
}
+static inline int max_poss_capacity(struct rq *rq)
+{
+ return SCHED_LOAD_SCALE;
+}
+
+
static inline void inc_cumulative_runnable_avg(struct hmp_sched_stats *stats,
struct task_struct *p)
{
@@ -2078,9 +2090,6 @@ enum rq_nohz_flag_bits {
#define nohz_flags(cpu) (&cpu_rq(cpu)->nohz_flags)
#endif
-#define NOHZ_KICK_ANY 0
-#define NOHZ_KICK_RESTRICT 1
-
#ifdef CONFIG_IRQ_TIME_ACCOUNTING
DECLARE_PER_CPU(u64, cpu_hardirq_time);