mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
sched/walt: Improve the scheduler
This change is for general scheduler improvements. Change-Id: I80606a09c3d09c65b7bcdf3940bee5e155d6318c Co-developed-by: Lingutla Chandrasekhar <clingutla@codeaurora.org> Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org> Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org> [satyap@codeaurora.org: fix trivial merge conflicts] Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
This commit is contained in:
parent
961c3a5fc3
commit
82fea0f9dc
1 changed files with 1 additions and 2 deletions
|
|
@ -3002,7 +3002,6 @@ static inline int same_freq_domain(int src_cpu, int dst_cpu)
|
|||
#define CPU_RESERVED 1
|
||||
|
||||
extern enum sched_boost_policy __weak boost_policy;
|
||||
extern unsigned int __weak sched_task_filter_util;
|
||||
static inline enum sched_boost_policy sched_boost_policy(void)
|
||||
{
|
||||
return boost_policy;
|
||||
|
|
@ -3126,7 +3125,7 @@ static inline enum sched_boost_policy task_boost_policy(struct task_struct *p)
|
|||
* under 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue