From 3aa5a3584c9ecc7e26a2e7dfd3b9b7957c56b3f6 Mon Sep 17 00:00:00 2001 From: Daeyeong Lee Date: Mon, 15 Oct 2018 15:38:00 +0900 Subject: [PATCH] [RAMEN9610-9418][COMMON] sched: ems: Disable ontime when capacity of coregroup is zero Change-Id: I22c3b9d97ca5b5f598436cfb06062b9cb24f2ff6 Signed-off-by: Daeyeong Lee --- kernel/sched/ems/ontime.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/sched/ems/ontime.c b/kernel/sched/ems/ontime.c index 3aa1fc525e7a..0706e62dfae0 100644 --- a/kernel/sched/ems/ontime.c +++ b/kernel/sched/ems/ontime.c @@ -879,6 +879,10 @@ parse_ontime(struct device_node *dn, struct ontime_cond *cond, int cnt) capacity = get_cpu_max_capacity(cpumask_first(&cond->cpus)); + /* If capacity of this coregroup is 0, disable ontime of this coregroup */ + if (capacity == 0) + goto disable; + /* If any of ontime parameter isn't, disable ontime of this coregroup */ res |= of_property_read_s32(coregroup, "upper-boundary", &prop); cond->upper_boundary = get_boundary(capacity, prop); -- 2.20.1