From: Daeyeong Lee Date: Mon, 15 Oct 2018 06:38:00 +0000 (+0900) Subject: [RAMEN9610-9418][COMMON] sched: ems: Disable ontime when capacity of coregroup is... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3aa5a3584c9ecc7e26a2e7dfd3b9b7957c56b3f6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-9418][COMMON] sched: ems: Disable ontime when capacity of coregroup is zero Change-Id: I22c3b9d97ca5b5f598436cfb06062b9cb24f2ff6 Signed-off-by: Daeyeong Lee --- 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);