Commit e80ae432 authored by Liujie Xie's avatar Liujie Xie Committed by Treehugger Robot
Browse files

ANDROID: vendor_hooks: Add hooks to implement the feature of improving the...


ANDROID: vendor_hooks: Add hooks to implement the feature of improving the scheduling priority of binder_sched->task

1) Check if it is a specific task in trace_android_vh_alloc_oem_binder_struct() and store the flag to t->android_vendor_data1
2) If it is a specific binder task and binder_thread selected, raise the scheduling priority of binder_thread->task in trace_android_vh_binder_proc_transaction_finish().
3) If it is a specific binder task but no binder_thread selected (e.g pending_async or no free threads), insert t->work to the appropriate position in the list in trace_android_vh_binder_special_task().
4) Some states are cleared in trace_android_vh_binder_transaction_received(). On the other hand, if no thread is selected in binder_proc_transaction() for async binders, the scheduling priority will be boosted here.
5) Restore the scheduling priority when BC_FREE_BUFFER in trace_android_vh_binder_buffer_release().

Bug: 329740751
Bug: 325855598
Change-Id: Iab4939fe4a4881b31961aaa2fef500b51c944743
Signed-off-by: default avatarFuchun Liao <lfc@oppo.com>
Signed-off-by: default avatarLiujie Xie <xieliujie@oppo.com>
parent 937bd071
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment