sched: disable EAS on non-big-little platforms [1/1]

PD#SWPL-8759

Problem:
disable EAS on non-big-little platforms

Solution:
disable EAS on non-big-little platforms

Verify:
w400, u200

Change-Id: I11845def9efaa2e1da8fd30ac26daeb0dc47eda4
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
This commit is contained in:
Hanjie Lin
2019-05-20 19:50:39 +08:00
committed by Luke Go
parent 91db4e07b9
commit 08ba6e7ffa

View File

@@ -182,9 +182,21 @@ static const struct file_operations sched_feat_fops = {
static __init int sched_init_debug(void)
{
#ifdef CONFIG_AMLOGIC_MODIFY
struct sched_domain *sd_ea_cpu0;
#endif
debugfs_create_file("sched_features", 0644, NULL, NULL,
&sched_feat_fops);
#ifdef CONFIG_AMLOGIC_MODIFY
sd_ea_cpu0 = per_cpu(sd_ea, 0);
if (!sd_ea_cpu0) {
pr_info("disable EAS feature\n");
sched_feat_set("NO_ENERGY_AWARE");
}
#endif
return 0;
}
late_initcall(sched_init_debug);