mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user