Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39f82797 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched: Move sched_boost defines out of SCHED_WALT



Currently the sched_boost is compiled only for WALT. But sched_boost
defines are accessed outside WALT in RT code. Move these definitions
outside WALT to fix compilation issues.

Change-Id: I38d006c9edb8c859aa10d0638aa271eaaa4db40d
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 55beff90
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1112,6 +1112,11 @@ enum sched_boost_policy {
	SCHED_BOOST_ON_ALL,
};

#define NO_BOOST 0
#define FULL_THROTTLE_BOOST 1
#define CONSERVATIVE_BOOST 2
#define RESTRAINED_BOOST 3

/*
 * Returns the rq capacity of any rq in a group. This does not play
 * well with groups where rq capacity can change independently.
@@ -2367,11 +2372,6 @@ extern void set_preferred_cluster(struct related_thread_group *grp);
extern void add_new_task_to_grp(struct task_struct *new);
extern unsigned int update_freq_aggregate_threshold(unsigned int threshold);

#define NO_BOOST 0
#define FULL_THROTTLE_BOOST 1
#define CONSERVATIVE_BOOST 2
#define RESTRAINED_BOOST 3

static inline int cpu_capacity(int cpu)
{
	return cpu_rq(cpu)->cluster->capacity;