sched/walt: Export set_task_boost() API

set_task_boost() API is meant for other modules, so export
this function. Also move the function declaration to
appropriate header.

Change-Id: I7213b137a0763140c631bea30653321674fef272
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
Pavankumar Kondeti 2021-02-03 19:23:15 +05:30 committed by Rishabh Bhatnagar
parent 3123055177
commit 058346c758
3 changed files with 6 additions and 2 deletions

View File

@ -10,11 +10,16 @@
#if IS_ENABLED(CONFIG_SCHED_WALT)
extern int sched_lpm_disallowed_time(int cpu, u64 *timeout);
extern int set_task_boost(int boost, u64 period);
#else
static inline int sched_lpm_disallowed_time(int cpu, u64 *timeout)
{
return INT_MAX;
}
static inline int set_task_boost(int boost, u64 period)
{
return 0;
}
#endif
#endif /* _LINUX_SCHED_WALT_H */

View File

@ -102,6 +102,7 @@ int set_task_boost(int boost, u64 period)
}
return 0;
}
EXPORT_SYMBOL(set_task_boost);
u64 sched_ktime_clock(void)
{

View File

@ -970,8 +970,6 @@ static inline void set_wake_up_idle(bool enabled)
wts->wake_up_idle = enabled;
}
extern int set_task_boost(int boost, u64 period);
static inline struct task_group *css_tg(struct cgroup_subsys_state *css)
{
return css ? container_of(css, struct task_group, css) : NULL;