forked from TencentOS/TencentOS-kernel
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 <robinlai@tencent.com> Reviewed-by: Bauerchen <bauerchen@tencent.com>
This commit is contained in:
parent
9e42f94a72
commit
b42f03261c
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue