mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
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:
parent
3123055177
commit
058346c758
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@ int set_task_boost(int boost, u64 period)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(set_task_boost);
|
||||
|
||||
u64 sched_ktime_clock(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user