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

Commit 24458bb3 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched/rt: Remove #ifdefery around SCHED_CORE_ROTATE



find_first_cpu_bit() has a stub when SCHED_CORE_ROTATE
config is disabled. So remove #ifdefery around it.

Change-Id: Iebf4b876bd83710bb5ff631e34fcadf957643e58
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 669aeab5
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -1758,13 +1758,8 @@ static int find_lowest_rq(struct task_struct *task)
	int best_cpu_idle_idx = INT_MAX;
	int best_cpu_idle_idx = INT_MAX;
	int cpu_idle_idx = -1;
	int cpu_idle_idx = -1;
	bool placement_boost;
	bool placement_boost;
#ifdef CONFIG_SCHED_CORE_ROTATE
	bool do_rotate = false;
	bool do_rotate = false;
	bool avoid_prev_cpu = false;
	bool avoid_prev_cpu = false;
#else
#define do_rotate false
#define avoid_prev_cpu false
#endif


	/* Make sure the mask is initialized first */
	/* Make sure the mask is initialized first */
	if (unlikely(!lowest_mask))
	if (unlikely(!lowest_mask))
@@ -1892,7 +1887,6 @@ static int find_lowest_rq(struct task_struct *task)
			best_cpu = cpu;
			best_cpu = cpu;
		}
		}


#ifdef CONFIG_SCHED_CORE_ROTATE
		if (do_rotate) {
		if (do_rotate) {
			/*
			/*
			 * We started iteration somewhere in the middle of
			 * We started iteration somewhere in the middle of
@@ -1903,7 +1897,6 @@ static int find_lowest_rq(struct task_struct *task)
			cpu = -1;
			cpu = -1;
			goto retry;
			goto retry;
		}
		}
#endif


		if (best_cpu != -1) {
		if (best_cpu != -1) {
			return best_cpu;
			return best_cpu;