It will return state++ when get the idle state, so we need fill
anothor idle power(=WFI) in the parameter of EAS, code as below:
static int group_idle_state(struct sched_group *sg)
{
int i, state = INT_MAX;
/* Find the shallowest idle state in the sched group. */
for_each_cpu(i, sched_group_cpus(sg))
state = min(state, idle_get_state_idx(cpu_rq(i)));
/* Take non-cpuidle idling into account (active idle/arch_cpu_idle()) */
state++;
return state;
}
Change-Id: I9293da1379746768823df4e75a7478aa50fc0e87
Signed-off-by: Chen Liang <cl@rock-chips.com>
// 1024 3416 /* 1800MHz */
>;
idle-cost-data = <
// 1024 3416 /* 1800MHz */
>;
idle-cost-data = <
449 263 /* 1512M */
>;
idle-cost-data = <
449 263 /* 1512M */
>;
idle-cost-data = <
/* static struct idle_state idle_states_cluster_a53[] = { */
/* static struct idle_state idle_states_cluster_a53[] = { */
+/* { .power = 56 }, /\* arch_cpu_idle() (active idle) = WFI *\/ */
/* { .power = 56 }, /\* WFI *\/ */
/* { .power = 56 }, /\* cpu-sleep-0 *\/ */
/* }; */
/* static struct idle_state idle_states_cluster_a72[] = { */
/* { .power = 56 }, /\* WFI *\/ */
/* { .power = 56 }, /\* cpu-sleep-0 *\/ */
/* }; */
/* static struct idle_state idle_states_cluster_a72[] = { */
+/* { .power = 65 }, /\* arch_cpu_idle() (active idle) = WFI *\/ */
/* { .power = 65 }, /\* WFI *\/ */
/* { .power = 65 }, /\* cpu-sleep-0 *\/ */
/* }; */
/* { .power = 65 }, /\* WFI *\/ */
/* { .power = 65 }, /\* cpu-sleep-0 *\/ */
/* }; */
/* }; */
/* static struct idle_state idle_states_core_a53[] = { */
/* }; */
/* static struct idle_state idle_states_core_a53[] = { */
+/* { .power = 6 }, /\* arch_cpu_idle() (active idle) = WFI *\/ */
/* { .power = 6 }, /\* WFI *\/ */
/* { .power = 0 }, /\* cpu-sleep-0 *\/ */
/* }; */
/* static struct idle_state idle_states_core_a72[] = { */
/* { .power = 6 }, /\* WFI *\/ */
/* { .power = 0 }, /\* cpu-sleep-0 *\/ */
/* }; */
/* static struct idle_state idle_states_core_a72[] = { */
+/* { .power = 15 }, /\* arch_cpu_idle() (active idle) = WFI *\/ */
/* { .power = 15 }, /\* WFI *\/ */
/* { .power = 0 }, /\* cpu-sleep-0 *\/ */
/* }; */
/* { .power = 15 }, /\* WFI *\/ */
/* { .power = 0 }, /\* cpu-sleep-0 *\/ */
/* }; */
// 1024 3416 /* 1800MHz */
>;
idle-cost-data = <
// 1024 3416 /* 1800MHz */
>;
idle-cost-data = <
// 449 263 /* 1512M */
>;
idle-cost-data = <
// 449 263 /* 1512M */
>;
idle-cost-data = <
>;
};
CLUSTER_COST_A53: cluster-cost1 {
>;
};
CLUSTER_COST_A53: cluster-cost1 {