Change-Id: Id606bb8ebe305f684ed097da5fd7fa809eae5f17
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
{
unsigned long load;
int i, nr_running;
+ unsigned int sg_cpu;
memset(sgs, 0, sizeof(*sgs));
}
/* Adjust by relative CPU capacity of the group */
+ sg_cpu = cpumask_first(sched_group_span(group));
sgs->group_capacity = group->sgc->capacity;
- sgs->avg_load = (sgs->group_load*SCHED_CAPACITY_SCALE) / sgs->group_capacity;
+ sgs->avg_load = (sgs->group_load * capacity_orig_of(sg_cpu)) /
+ sgs->group_capacity;
if (sgs->sum_nr_running)
sgs->load_per_task = sgs->sum_weighted_load / sgs->sum_nr_running;