sched: fix compiler errors with !SCHED_HMP
HMP scheduler boost feature related functions are referred in SMP load balancer. Add the nop functions for the same to fix the compiler errors with !SCHED_HMP. Change-Id: I1cbcf67f728c2cbc7c0f47e8eaf1f4165649dce8 Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
parent
2dc96b1cbb
commit
f1a15235d6
1 changed files with 16 additions and 6 deletions
|
@ -1054,6 +1054,12 @@ static inline void sched_ttwu_pending(void) { }
|
|||
#include "stats.h"
|
||||
#include "auto_group.h"
|
||||
|
||||
enum sched_boost_policy {
|
||||
SCHED_BOOST_NONE,
|
||||
SCHED_BOOST_ON_BIG,
|
||||
SCHED_BOOST_ON_ALL,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_SCHED_HMP
|
||||
|
||||
#define WINDOW_STATS_RECENT 0
|
||||
|
@ -1138,12 +1144,6 @@ extern unsigned int update_freq_aggregate_threshold(unsigned int threshold);
|
|||
extern void update_avg_burst(struct task_struct *p);
|
||||
extern void update_avg(u64 *avg, u64 sample);
|
||||
|
||||
enum sched_boost_policy {
|
||||
SCHED_BOOST_NONE,
|
||||
SCHED_BOOST_ON_BIG,
|
||||
SCHED_BOOST_ON_ALL,
|
||||
};
|
||||
|
||||
#define NO_BOOST 0
|
||||
#define FULL_THROTTLE_BOOST 1
|
||||
#define CONSERVATIVE_BOOST 2
|
||||
|
@ -1495,6 +1495,16 @@ struct hmp_sched_stats;
|
|||
struct related_thread_group;
|
||||
struct sched_cluster;
|
||||
|
||||
static inline enum sched_boost_policy sched_boost_policy(void)
|
||||
{
|
||||
return SCHED_BOOST_NONE;
|
||||
}
|
||||
|
||||
static inline bool task_sched_boost(struct task_struct *p)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline int got_boost_kick(void)
|
||||
{
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue