[RAMEN9610-9418][COMMON] sched: ems: Disable ontime when capacity of coregroup is...
authorDaeyeong Lee <daeyeong.lee@samsung.com>
Mon, 15 Oct 2018 06:38:00 +0000 (15:38 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:57 +0000 (20:24 +0300)
Change-Id: I22c3b9d97ca5b5f598436cfb06062b9cb24f2ff6
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
kernel/sched/ems/ontime.c

index 3aa1fc525e7a40a0d1a13b69d3d40f946a1ccd0a..0706e62dfae06661f7becfc3a8061a0e4c5ec829 100644 (file)
@@ -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);