linux/kernel
Pavankumar Kondeti 29203f8c8f ANDROID: cgroup: Add android_rvh_cgroup_force_kthread_migration
In Android GKI, CONFIG_FAIR_GROUP_SCHED is enabled [1] to help
prioritize important work. Given that CPU shares of root cgroup
can't be changed, leaving the tasks inside root cgroup will give
them higher share compared to the other tasks inside important
cgroups. This is mitigated by moving all tasks inside root cgroup to
a different cgroup after Android is booted. However, there are many
kernel tasks stuck in the root cgroup after the boot.

It is possible to relax kernel threads and kworkers migrations under
certain scenarios. However the patch [2] posted at upstream is not
accepted. Hence add a restricted vendor hook to notify modules when a
kernel thread is requested for cgroup migration. The modules can relax
the restrictions forced by the kernel and allow the cgroup migration.

[1] f08f049de1
[2] https://lore.kernel.org/lkml/1617714261-18111-1-git-send-email-pkondeti@codeaurora.org

Bug: 184594949
Change-Id: I445a170ba797c8bece3b4b59b7a42cdd85438f1f
Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
2021-05-04 20:13:09 +00:00
..
bpf Merge 5.10.33 into android12-5.10 2021-04-29 13:57:47 +02:00
cgroup ANDROID: cgroup: Add android_rvh_cgroup_force_kthread_migration 2021-05-04 20:13:09 +00:00
configs
debug kgdb: fix to kill breakpoints on initmem after boot 2021-03-04 11:38:46 +01:00
dma
entry x86/entry: Move nmi entry/exit into common code 2021-03-17 17:06:36 +01:00
events This is the 5.10.24 stable release 2021-03-19 09:42:56 +01:00
gcov gcov: re-fix clang-11+ support 2021-04-14 08:41:58 +02:00
irq Merge 5.10.26 into android12-5.10-lts 2021-03-25 17:15:27 +01:00
kcsan kcsan: Rewrite kcsan_prandom_u32_max() without prandom_u32_state() 2021-03-04 11:37:37 +01:00
livepatch
locking Merge 5.10.33 into android12-5.10 2021-04-29 13:57:47 +02:00
power Merge 5.10.27 into android12-5.10 2021-04-02 15:25:50 +02:00
printk ANDROID: logbuf: vendor hook for logbuf dump on oops 2021-04-15 20:02:45 +00:00
rcu FROMGIT: rcu/tree: Add a trace event for RCU CPU stall warnings 2021-03-11 21:06:44 +09:00
sched FROMLIST: sched: Fix out-of-bound access in uclamp 2021-05-04 09:07:38 +00:00
time FROMGIT: tick/broadcast: Allow late registered device to enter oneshot mode 2021-04-23 16:25:34 +00:00
trace Merge 5.10.31 into android12-5.10 2021-04-16 16:01:44 +02:00
.gitignore FROMGIT: kbuild: update config_data.gz only when the content of .config is changed 2021-04-29 08:45:48 +00:00
acct.c
async.c
audit_fsnotify.c
audit_tree.c
audit_watch.c
audit.c
audit.h
auditfilter.c
auditsc.c
backtracetest.c
bounds.c
capability.c
cfi.c ANDROID: cfi: switch to synchronize_rcu_expedited() 2021-02-16 18:09:38 +00:00
compat.c
configs.c
context_tracking.c
cpu_pm.c
cpu.c ANDROID: cpu/hotplug: failure to offline 2nd to last cpu 2021-03-11 21:32:28 +00:00
crash_core.c
crash_dump.c
cred.c ANDROID: kernel: Add vendor hook in creds 2021-03-15 15:37:57 +00:00
delayacct.c
dma.c
exec_domain.c
exit.c ANDROID: vendor_hooks: Add hooks for memory when debug 2021-03-19 04:54:07 +00:00
extable.c
fail_function.c
fork.c ANDROID: sched: Add vendor hooks for sched. 2021-04-23 18:42:38 -07:00
freezer.c Revert "kernel: freezer should treat PF_IO_WORKER like PF_KTHREAD for freezing" 2021-04-07 15:00:14 +02:00
futex.c ANDROID: mm: page_pinner: use put_user_page at get_futex_key 2021-04-30 09:13:34 -07:00
gen_kheaders.sh
groups.c
hung_task.c
iomem.c
irq_work.c
jump_label.c static_call: Fix static_call_update() sanity check 2021-03-25 09:04:18 +01:00
kallsyms.c
kcmp.c
Kconfig.freezer
Kconfig.hz
Kconfig.locks
Kconfig.preempt
kcov.c
kexec_core.c
kexec_elf.c
kexec_file.c ima: Free IMA measurement buffer after kexec syscall 2021-03-04 11:37:50 +01:00
kexec_internal.h
kexec.c
kheaders.c
kmod.c
kprobes.c kprobes: Fix to delay the kprobes jump optimization 2021-03-04 11:38:35 +01:00
ksysfs.c
kthread.c
latencytop.c
Makefile FROMGIT: kbuild: update config_data.gz only when the content of .config is changed 2021-04-29 08:45:48 +00:00
module_signature.c module: harden ELF info handling 2021-03-25 09:04:11 +01:00
module_signing.c module: harden ELF info handling 2021-03-25 09:04:11 +01:00
module-internal.h
module.c Merge 5.10.26 into android12-5.10-lts 2021-03-25 17:15:27 +01:00
notifier.c
nsproxy.c
padata.c
panic.c
params.c
pid_namespace.c
pid.c
profile.c
ptrace.c
range.c
reboot.c
regset.c
relay.c
resource.c
rseq.c
scftorture.c
scs.c
seccomp.c Merge 5.10.20 into android12-5.10 2021-03-07 12:33:33 +01:00
signal.c ANDROID: Add vendor hooks to signal. 2021-04-09 02:30:55 +00:00
smp.c ANDROID: smp: fix preprocessor conditional warning 2021-04-14 18:33:17 +00:00
smpboot.c
smpboot.h
softirq.c
stackleak.c
stacktrace.c ANDROID: stacktrace: export stack_trace_save_tsk/regs 2021-04-13 13:18:04 +00:00
static_call.c static_call: Align static_call_is_init() patching condition 2021-04-07 15:00:06 +02:00
stop_machine.c
sys_ni.c
sys.c ANDROID: Add vendor hooks when syscall prctl finished 2021-03-08 16:18:51 +00:00
sysctl-test.c
sysctl.c This is the 5.10.24 stable release 2021-03-19 09:42:56 +01:00
task_work.c FROMGIT: kasan: record task_work_add() call stack 2021-03-24 15:09:18 -07:00
taskstats.c
test_kprobes.c
torture.c
tracepoint.c ANDROID: vendor_hooks: Allow multiple attachments to restricted hooks 2021-03-31 09:08:06 +00:00
tsacct.c
ucount.c
uid16.c
uid16.h
umh.c
up.c
user_namespace.c
user-return-notifier.c
user.c ANDROID: export find_user() & free_uid()for GKI purpose. 2021-04-23 03:37:41 +00:00
usermode_driver.c bpf: Fix umd memory leak in copy_process() 2021-03-30 14:32:03 +02:00
utsname_sysctl.c
utsname.c
watch_queue.c
watchdog_hld.c
watchdog.c
workqueue_internal.h
workqueue.c Merge 5.10.30 into android12-5.10 2021-04-15 14:23:41 +02:00