From 058346c758256f6cf9d392e09d26335530d7c4a4 Mon Sep 17 00:00:00 2001 From: Pavankumar Kondeti Date: Wed, 3 Feb 2021 19:23:15 +0530 Subject: [PATCH] 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 --- include/linux/sched/walt.h | 5 +++++ kernel/sched/walt/walt.c | 1 + kernel/sched/walt/walt.h | 2 -- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/linux/sched/walt.h b/include/linux/sched/walt.h index f3fdd4da27e8..1684c50ef544 100644 --- a/include/linux/sched/walt.h +++ b/include/linux/sched/walt.h @@ -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 */ diff --git a/kernel/sched/walt/walt.c b/kernel/sched/walt/walt.c index e6a9f6ddea37..706feba887f6 100644 --- a/kernel/sched/walt/walt.c +++ b/kernel/sched/walt/walt.c @@ -102,6 +102,7 @@ int set_task_boost(int boost, u64 period) } return 0; } +EXPORT_SYMBOL(set_task_boost); u64 sched_ktime_clock(void) { diff --git a/kernel/sched/walt/walt.h b/kernel/sched/walt/walt.h index 14cf680953ee..9f2c0f4c9c01 100644 --- a/kernel/sched/walt/walt.h +++ b/kernel/sched/walt/walt.h @@ -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;