ANDROID: sched: Add vendor hooks for sched.

Add vendor hooks in sched to support oem's feature.

Bug: 183674818

Signed-off-by: lijianzhong <lijianzhong@xiaomi.com>
Change-Id: I8415958749948b3702e411f835c227ad4f8d8e92
This commit is contained in:
lijianzhong
2021-03-24 19:53:17 +08:00
committed by Todd Kjos
parent 58b10706f3
commit 54f66141a8
5 changed files with 75 additions and 13 deletions

View File

@@ -109,6 +109,8 @@
#define CREATE_TRACE_POINTS
#include <trace/events/task.h>
#undef CREATE_TRACE_POINTS
#include <trace/hooks/sched.h>
/*
* Minimum number of threads to boot the kernel
*/
@@ -446,6 +448,7 @@ void free_task(struct task_struct *tsk)
cpufreq_task_times_exit(tsk);
scs_release(tsk);
trace_android_vh_free_task(tsk);
#ifndef CONFIG_THREAD_INFO_IN_TASK
/*
* The task is finally done with both the stack and thread_info,