schedtune_assist: Don't allow to change the values

fourteen
Alex Winkowski 4 years ago committed by Jenna
parent 81abed6f55
commit dc25ffc52d
  1. 19
      kernel/sched/tune.c

@ -659,38 +659,27 @@ boost_write(struct cgroup_subsys_state *css, struct cftype *cft,
static int sched_boost_override_write_wrapper(struct cgroup_subsys_state *css,
struct cftype *cft, u64 override)
{
if (task_is_booster(current))
return 0;
return 0;
return sched_boost_override_write(css, cft, override);
}
static int sched_colocate_write_wrapper(struct cgroup_subsys_state *css,
struct cftype *cft, u64 colocate)
{
if (task_is_booster(current))
return 0;
return sched_colocate_write(css, cft, colocate);
return 0;
}
#endif
static int boost_write_wrapper(struct cgroup_subsys_state *css,
struct cftype *cft, s64 boost)
{
if (task_is_booster(current))
return 0;
return boost_write(css, cft, boost);
return 0;
}
static int prefer_idle_write_wrapper(struct cgroup_subsys_state *css,
struct cftype *cft, u64 prefer_idle)
{
if (task_is_booster(current))
return 0;
return prefer_idle_write(css, cft, prefer_idle);
return 0;
}
#endif

Loading…
Cancel
Save