From b42f03261cca35aff0fcc0b001dfa34df2139bbb Mon Sep 17 00:00:00 2001 From: Bin Lai Date: Wed, 7 Sep 2022 20:59:33 +0800 Subject: [PATCH] sched/debug: allow user modify sched_domain flags Kernel-5.4 prohibit user to modify the sched_domain flags bit, but we have to do it to optimize performance in some cases. So we remove the prohibition of sched_domain flags moditication allow user do the better tunning. Signed-off-by: Bin Lai Reviewed-by: Bauerchen --- kernel/sched/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index faada713c..68bb7f898 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -256,7 +256,7 @@ sd_alloc_ctl_domain_table(struct sched_domain *sd) set_table_entry(&table[2], "busy_factor", &sd->busy_factor, sizeof(int), 0644, proc_dointvec_minmax); set_table_entry(&table[3], "imbalance_pct", &sd->imbalance_pct, sizeof(int), 0644, proc_dointvec_minmax); set_table_entry(&table[4], "cache_nice_tries", &sd->cache_nice_tries, sizeof(int), 0644, proc_dointvec_minmax); - set_table_entry(&table[5], "flags", &sd->flags, sizeof(int), 0444, proc_dointvec_minmax); + set_table_entry(&table[5], "flags", &sd->flags, sizeof(int), 0644, proc_dointvec_minmax); set_table_entry(&table[6], "max_newidle_lb_cost", &sd->max_newidle_lb_cost, sizeof(long), 0644, proc_doulongvec_minmax); set_table_entry(&table[7], "name", sd->name, CORENAME_MAX_SIZE, 0444, proc_dostring); /* &table[8] is terminator */