diff --git a/kernel/sched/tune.c b/kernel/sched/tune.c index 706e99255412..d16e778e6a41 100755 --- a/kernel/sched/tune.c +++ b/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