android_kernel_motorola_sm6375/kernel/sched
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stephen Dickey db1f231281 sched/cpupri: skip isolated cpus
Currently there exists a path where cpupri_find could
return lowest_mask without removing isolated cpus. This
happened when __cpu_pri() didn't consider isolated
cpus and indicated that the lowest_mask was not empty.
Subsequently, cpupri_find_fitness() would find the
lowest_mask was empty, after removing isolated cpus.
This led to cpupri_find() being called again,
cpupri_find_fitness being re-entered, and this time,
since fitness_fn is NULL, returns true. This means there
is a case where lowest_mask only has isolated CPUs
and cpupri_find_fitness will indicate yes, cpus were found.

When invokved in the rt wakeup path through find_lowest_rq(),
this caused the pushes of rt tasks to be placed on
isolated cpus.  This also causes the the wakeups of rt
tasks on isolated cpus, although this is a rare occurrence.

Fix it by ensuring __cpu_pri() removes isolated cpus from
lowest_mask, which in turn causes cpupri_find_fitness() to
skip the current task_pri index prior to making any other
decision.  For the case where lowest_mask only has isolated
cpus left, this will result in no CPU being found, and
a return of false from cpupri_find_fitness().

Change-Id: I3e28b8366513ee51dc5c2d4eb0a2eb146c82f255
Signed-off-by: Stephen Dickey <[email protected]>
2020-08-24 16:12:20 -07:00
..
autogroup.c
autogroup.h
clock.c
completion.c
core.c Merge android11-5.4.54 (261a54f) into msm-5.4 2020-08-04 11:54:06 -07:00
cpuacct.c
cpudeadline.c
cpudeadline.h
cpufreq.c
cpufreq_schedutil.c sched/walt: Consolidate WALT parameters 2020-06-03 17:19:06 -07:00
cpupri.c sched/cpupri: skip isolated cpus 2020-08-24 16:12:20 -07:00
cpupri.h UPSTREAM: sched/rt: Optimize cpupri_find() on non-heterogenous systems 2020-04-03 16:14:27 +01:00
cputime.c sched: walt: Improve the scheduler 2020-06-11 15:57:54 +05:30
deadline.c Merge android-5.4-stable.50 (a200ad5) into msm-5.4 2020-07-20 19:22:16 -07:00
debug.c Merge android11-5.4.52 (c7725ae) into msm-5.4 2020-07-27 01:21:35 -07:00
fair.c Merge "sched/walt: Improve the scheduler" 2020-08-18 21:37:56 -07:00
features.h sched: fair: Improve the Scheduler 2020-04-28 18:57:12 -07:00
idle.c sched: use wake_q length only when WALT is enabled 2020-06-22 17:33:30 -07:00
isolation.c
loadavg.c timers/nohz: Update NOHZ load in remote tick 2020-03-05 16:43:36 +01:00
Makefile sched: Provide stub definitions for WALT 2020-02-13 16:42:34 -08:00
membarrier.c
pelt.c
pelt.h
psi.c Merge android-5.4.24 (ce5de62) into msm-5.4 2020-04-14 08:25:29 -07:00
rt.c Merge "sched: rt: Add trace point for taskplacement" 2020-08-15 07:11:23 -07:00
sched-pelt.h sched/fair: Change PELT half-life to 8ms 2020-03-12 18:21:44 -07:00
sched.h sched/walt: Improve the scheduler 2020-08-17 10:50:39 +05:30
stats.c
stats.h
stop_task.c sched: use wake_q length only when WALT is enabled 2020-06-22 17:33:30 -07:00
swait.c
topology.c sched/walt: Fix negative count of sched_asym_cpucapacity static key 2020-06-16 08:14:09 +05:30
wait.c
wait_bit.c
walt.c sched/walt: Improve the scheduler 2020-07-21 09:53:30 -07:00
walt.h sched/walt: Improve the scheduler 2020-07-28 17:34:13 +05:30