android_kernel_oneplus_msm8998/kernel/sched
Pavankumar Kondeti 97fe3984e9 sched/walt: Fix the memory leak of idle task load pointers
The memory for task load pointers are allocated twice for each
idle thread except for the boot CPU. This happens during boot
from idle_threads_init()->idle_init() in the following 2 paths.

1. idle_init()->fork_idle()->copy_process()->
		sched_fork()->init_new_task_load()

2. idle_init()->fork_idle()-> init_idle()->init_new_task_load()

The memory allocation for all tasks happens through the 1st path,
so use the same for idle tasks and kill the 2nd path. Since
the idle thread of boot CPU does not go through fork_idle(),
allocate the memory for it separately.

Change-Id: I4696a414ffe07d4114b56d326463026019e278f1
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
[schikk@codeaurora.org: resolved merge conflicts]
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2019-08-30 09:21:10 +02:00
..
auto_group.c sched/autogroup: Fix autogroup_move_group() to never skip sched_move_task() 2017-10-27 10:23:17 +02:00
auto_group.h
boost.c sched: Remove sched_enable_hmp flag 2017-02-02 10:23:08 -08:00
clock.c
completion.c
core.c sched/walt: Fix the memory leak of idle task load pointers 2019-08-30 09:21:10 +02:00
core_ctl.c Merge "core_ctl: Add sysfs node to disable core_ctl" 2017-06-01 23:49:00 -07:00
cpuacct.c
cpuacct.h
cpudeadline.c
cpudeadline.h
cpufreq.c sched: backport cpufreq hooks from 4.9-rc4 2017-06-02 08:01:50 -07:00
cpufreq_schedutil.c BACKPORT: schedutil: Reset cached freq if it is not in sync with next_freq 2017-12-12 16:45:55 +00:00
cpupri.c softirq: defer softirq processing to ksoftirqd if CPU is busy with RT 2017-08-07 16:08:23 +05:30
cpupri.h
cputime.c Merge android-4.4.142 (8ec9fd8) into msm-4.4 2018-08-03 16:59:20 +05:30
deadline.c Merge android-4.4.114 (fe09418) into msm-4.4 2018-02-01 14:02:45 +05:30
debug.c Merge branch 'android-4.4@6fc0573' into branch 'msm-4.4' 2017-06-19 16:59:55 -07:00
energy.c Merge branch 'v4.4-16.09-android-tmp' into lsk-v4.4-16.09-android 2016-12-16 13:52:17 -08:00
fair.c Merge android-4.4.135 (c9d74f2) into msm-4.4 2018-06-27 14:42:55 +05:30
features.h Merge tag 'lsk-v4.4-16.12-android' into branch 'msm-4.4' 2017-02-28 17:10:49 -08:00
hmp.c sched/walt: Fix the memory leak of idle task load pointers 2019-08-30 09:21:10 +02:00
idle.c vmstat: make vmstat_updater deferrable again and shut down on idle 2016-09-14 15:02:22 +05:30
idle_task.c Merge android-4.4@ceee5bd (v4.4.95) into msm-4.4 2017-11-06 15:58:47 -08:00
loadavg.c sched/loadavg: Avoid loadavg spikes caused by delayed NO_HZ accounting 2017-07-05 14:37:21 +02:00
Makefile Merge android-4.4.107 (79f138a) into msm-4.4 2018-01-18 12:49:58 +05:30
rt.c Merge android-4.4.135 (c9d74f2) into msm-4.4 2018-06-27 14:42:55 +05:30
sched.h sched/walt: Fix the memory leak of idle task load pointers 2019-08-30 09:21:10 +02:00
sched_avg.c sched: add sched_get_cpu_last_busy_time() API 2018-03-06 19:46:33 +05:30
stats.c schedstats/eas: guard properly to avoid breaking non-smp schedstats users 2017-06-03 15:03:03 +01:00
stats.h
stop_task.c Merge android-4.4@ceee5bd (v4.4.95) into msm-4.4 2017-11-06 15:58:47 -08:00
tune.c Merge android-4.4@d68ba9f (v4.4.89) into msm-4.4 2017-09-29 14:49:19 -07:00
tune.h sched/tune: Introducing a new schedtune attribute prefer_idle 2016-09-14 15:02:22 +05:30
wait.c
walt.c sched: walt: Correct WALT window size initialization 2017-10-27 11:58:48 -07:00
walt.h sched: walt: Correct WALT window size initialization 2017-10-27 11:58:48 -07:00