ANDROID: kernel: sched: Export reweight_task

Export reweight_task for vendor usage when they are trying to manipulate
task prio. After the prio changed, it will need to update its load
weight to take effect. Therefore, this function needs to be called
from vendor kernel module. It could be used with
trace_android_rvh_set_user_nice and trace_android_rvh_setscheduler.

Bug: 245675204
Change-Id: I0033518bf1cbd0a8129795743b95340f439d5fe8
Signed-off-by: Rick Yiu <rickyiu@google.com>
This commit is contained in:
Rick Yiu
2022-11-09 10:07:46 +00:00
parent 6f642cd2f2
commit db144888f8

View File

@@ -3137,6 +3137,7 @@ void reweight_task(struct task_struct *p, int prio)
reweight_entity(cfs_rq, se, weight);
load->inv_weight = sched_prio_to_wmult[prio];
}
EXPORT_SYMBOL_GPL(reweight_task);
#ifdef CONFIG_FAIR_GROUP_SCHED
#ifdef CONFIG_SMP