Loading kernel/sched/boost.c +1 −3 Original line number Original line Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only /* /* * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. */ */ #include "sched.h" #include "sched.h" Loading Loading @@ -78,12 +78,10 @@ static void sched_full_throttle_boost_exit(void) static void sched_conservative_boost_enter(void) static void sched_conservative_boost_enter(void) { { update_cgroup_boost_settings(); update_cgroup_boost_settings(); sched_task_filter_util = sysctl_sched_min_task_util_for_boost; } } static void sched_conservative_boost_exit(void) static void sched_conservative_boost_exit(void) { { sched_task_filter_util = sysctl_sched_min_task_util_for_colocation; restore_cgroup_boost_settings(); restore_cgroup_boost_settings(); } } Loading kernel/sched/fair.c +0 −1 Original line number Original line Diff line number Diff line Loading @@ -175,7 +175,6 @@ unsigned int sched_capacity_margin_down[NR_CPUS] = { unsigned int sysctl_sched_min_task_util_for_boost = 51; unsigned int sysctl_sched_min_task_util_for_boost = 51; /* 0.68ms default for 20ms window size scaled to 1024 */ /* 0.68ms default for 20ms window size scaled to 1024 */ unsigned int sysctl_sched_min_task_util_for_colocation = 35; unsigned int sysctl_sched_min_task_util_for_colocation = 35; unsigned int sched_task_filter_util = 35; __read_mostly unsigned int sysctl_sched_prefer_spread; __read_mostly unsigned int sysctl_sched_prefer_spread; #endif #endif unsigned int sched_small_task_threshold = 102; unsigned int sched_small_task_threshold = 102; Loading kernel/sched/sched.h +1 −2 Original line number Original line Diff line number Diff line Loading @@ -2800,7 +2800,6 @@ static inline int same_freq_domain(int src_cpu, int dst_cpu) #define CPU_RESERVED 1 #define CPU_RESERVED 1 extern enum sched_boost_policy boost_policy; extern enum sched_boost_policy boost_policy; extern unsigned int sched_task_filter_util; static inline enum sched_boost_policy sched_boost_policy(void) static inline enum sched_boost_policy sched_boost_policy(void) { { return boost_policy; return boost_policy; Loading Loading @@ -2926,7 +2925,7 @@ static inline enum sched_boost_policy task_boost_policy(struct task_struct *p) * under conservative boost. * under conservative boost. */ */ if (sched_boost() == CONSERVATIVE_BOOST && if (sched_boost() == CONSERVATIVE_BOOST && task_util(p) <= sched_task_filter_util) task_util(p) <= sysctl_sched_min_task_util_for_boost) policy = SCHED_BOOST_NONE; policy = SCHED_BOOST_NONE; } } Loading kernel/sched/walt.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1862,7 +1862,7 @@ static void update_history(struct rq *rq, struct task_struct *p, p->ravg.pred_demand = pred_demand; p->ravg.pred_demand = pred_demand; p->ravg.pred_demand_scaled = pred_demand_scaled; p->ravg.pred_demand_scaled = pred_demand_scaled; if (demand_scaled > sched_task_filter_util) if (demand_scaled > sysctl_sched_min_task_util_for_colocation) p->unfilter = sysctl_sched_task_unfilter_period; p->unfilter = sysctl_sched_task_unfilter_period; else else if (p->unfilter) if (p->unfilter) Loading Loading
kernel/sched/boost.c +1 −3 Original line number Original line Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only /* /* * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. */ */ #include "sched.h" #include "sched.h" Loading Loading @@ -78,12 +78,10 @@ static void sched_full_throttle_boost_exit(void) static void sched_conservative_boost_enter(void) static void sched_conservative_boost_enter(void) { { update_cgroup_boost_settings(); update_cgroup_boost_settings(); sched_task_filter_util = sysctl_sched_min_task_util_for_boost; } } static void sched_conservative_boost_exit(void) static void sched_conservative_boost_exit(void) { { sched_task_filter_util = sysctl_sched_min_task_util_for_colocation; restore_cgroup_boost_settings(); restore_cgroup_boost_settings(); } } Loading
kernel/sched/fair.c +0 −1 Original line number Original line Diff line number Diff line Loading @@ -175,7 +175,6 @@ unsigned int sched_capacity_margin_down[NR_CPUS] = { unsigned int sysctl_sched_min_task_util_for_boost = 51; unsigned int sysctl_sched_min_task_util_for_boost = 51; /* 0.68ms default for 20ms window size scaled to 1024 */ /* 0.68ms default for 20ms window size scaled to 1024 */ unsigned int sysctl_sched_min_task_util_for_colocation = 35; unsigned int sysctl_sched_min_task_util_for_colocation = 35; unsigned int sched_task_filter_util = 35; __read_mostly unsigned int sysctl_sched_prefer_spread; __read_mostly unsigned int sysctl_sched_prefer_spread; #endif #endif unsigned int sched_small_task_threshold = 102; unsigned int sched_small_task_threshold = 102; Loading
kernel/sched/sched.h +1 −2 Original line number Original line Diff line number Diff line Loading @@ -2800,7 +2800,6 @@ static inline int same_freq_domain(int src_cpu, int dst_cpu) #define CPU_RESERVED 1 #define CPU_RESERVED 1 extern enum sched_boost_policy boost_policy; extern enum sched_boost_policy boost_policy; extern unsigned int sched_task_filter_util; static inline enum sched_boost_policy sched_boost_policy(void) static inline enum sched_boost_policy sched_boost_policy(void) { { return boost_policy; return boost_policy; Loading Loading @@ -2926,7 +2925,7 @@ static inline enum sched_boost_policy task_boost_policy(struct task_struct *p) * under conservative boost. * under conservative boost. */ */ if (sched_boost() == CONSERVATIVE_BOOST && if (sched_boost() == CONSERVATIVE_BOOST && task_util(p) <= sched_task_filter_util) task_util(p) <= sysctl_sched_min_task_util_for_boost) policy = SCHED_BOOST_NONE; policy = SCHED_BOOST_NONE; } } Loading
kernel/sched/walt.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1862,7 +1862,7 @@ static void update_history(struct rq *rq, struct task_struct *p, p->ravg.pred_demand = pred_demand; p->ravg.pred_demand = pred_demand; p->ravg.pred_demand_scaled = pred_demand_scaled; p->ravg.pred_demand_scaled = pred_demand_scaled; if (demand_scaled > sched_task_filter_util) if (demand_scaled > sysctl_sched_min_task_util_for_colocation) p->unfilter = sysctl_sched_task_unfilter_period; p->unfilter = sysctl_sched_task_unfilter_period; else else if (p->unfilter) if (p->unfilter) Loading