ANDROID: binder: change parameter of vendor hook
Pass parameter 'binder_transaction *t' to vendor hook
android_vh_binder_proc_transaction so vendors can get the
code and other information of this transaction.
We use t->flags to determine whether this is a one way transaction.
And we can get the t->from->task if this is a non oneway transaction.
So we can boost the target by setting its schedule attributes if the
‘from task’ is in our UX task set.
Compared with adding a new parameter, changing parameter
't->code' to 't' will be more flexible and extensible.
This will surely break the KMI, but since the KMI is still not frozen
now. I think maybe passing 't' is better so we can reduce the number
of parameters.
Bug: 336223508
Change-Id: Ia65476e2bd3213850a2995bca6376d30ecfce7a2
Signed-off-by:
liliangliang <liliangliang@vivo.com>
Loading
Please sign in to comment