diff --git a/kernel/sched/walt/boost.c b/kernel/sched/walt/boost.c index eec2a5623987..451b1090c60c 100644 --- a/kernel/sched/walt/boost.c +++ b/kernel/sched/walt/boost.c @@ -291,3 +291,9 @@ int sched_boost_handler(struct ctl_table *table, int write, mutex_unlock(&boost_mutex); return ret; } + +void walt_boost_init(void) +{ + /* force call the callbacks for default boost */ + sched_set_boost(FULL_THROTTLE_BOOST); +} diff --git a/kernel/sched/walt/walt.c b/kernel/sched/walt/walt.c index b0079827eae9..554fab2ee0a8 100644 --- a/kernel/sched/walt/walt.c +++ b/kernel/sched/walt/walt.c @@ -4186,6 +4186,7 @@ static void walt_init(void) input_boost_init(); core_ctl_init(); + walt_boost_init(); waltgov_register(); i = match_string(sched_feat_names, __SCHED_FEAT_NR, "TTWU_QUEUE"); diff --git a/kernel/sched/walt/walt.h b/kernel/sched/walt/walt.h index 861ea775ddf2..43723dd53f8d 100644 --- a/kernel/sched/walt/walt.h +++ b/kernel/sched/walt/walt.h @@ -157,6 +157,7 @@ extern int sched_set_group_id(struct task_struct *p, unsigned int group_id); extern unsigned int sched_get_group_id(struct task_struct *p); extern void core_ctl_check(u64 wallclock); extern int sched_set_boost(int enable); +extern void walt_boost_init(void); extern int sched_wake_up_idle_show(struct seq_file *m, void *v); extern ssize_t sched_wake_up_idle_write(struct file *file, const char __user *buf, size_t count, loff_t *offset);