summaryrefslogtreecommitdiff
authorHanjie Lin <hanjie.lin@amlogic.com>2019-05-20 11:50:39 (GMT)
committer Jianxin Pan <jianxin.pan@amlogic.com>2019-06-03 08:26:02 (GMT)
commit40a0d15528cf98c665fd1923e958321be64f1d83 (patch)
treeb0d4d74391fa764351c1e77501f8a8cf65fe5a8a
parentb61f4c685b02b87b6795fc9238b471b676382fa2 (diff)
downloadcommon-40a0d15528cf98c665fd1923e958321be64f1d83.zip
common-40a0d15528cf98c665fd1923e958321be64f1d83.tar.gz
common-40a0d15528cf98c665fd1923e958321be64f1d83.tar.bz2
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>
Diffstat
-rw-r--r--kernel/sched/debug.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 59e38cd..e7f7034 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -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);