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

Commit c051c741 authored by Dilip Gudlur's avatar Dilip Gudlur
Browse files

sched: modify BUSY_LOAD_FACTOR



Reduces the factor from 50% to 10% such that
sched_get_cpu_last_busy_time() can return the
last time stamp when a given CPU is busy with
more than 2 runnable tasks or has load greater
than the 10% of it's max capacity.

Change-Id: I77bba878b676ebeb418a9e64ab566c0b107666b4
Signed-off-by: default avatarDilip Gudlur <dgudlur@codeaurora.org>
parent e9e45533
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ void sched_get_nr_running_avg(int *avg, int *iowait_avg, int *big_avg,
EXPORT_SYMBOL(sched_get_nr_running_avg);

#define BUSY_NR_RUN		3
#define BUSY_LOAD_FACTOR	2
#define BUSY_LOAD_FACTOR	10
static inline void update_last_busy_time(int cpu, bool dequeue,
				unsigned long prev_nr_run, u64 curr_time)
{