mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ANDROID: vendor_hooks: Add parameter to android_vh_wake_up_sync
Extend vendor hook definition to add a sock struct pointer parameter in useful vendor hook to modify wake flag. android_vh_do_wake_up_sync Modified definition to include sock struct pointer param Bug: 267294957 Change-Id: I49fe4a44e66e0ac2ebb975a710c184361d8b0c94 Signed-off-by: Raul Martinez <quic_mraul@quicinc.com> Signed-off-by: Subash Abhinov Kasiviswanathan <quic_subashab@quicinc.com>
This commit is contained in:
committed by
Subash Abhinov Kasiviswanathan
parent
9834c26bae
commit
91d8cca518
@@ -318,8 +318,8 @@ DECLARE_RESTRICTED_HOOK(android_rvh_update_thermal_stats,
|
||||
TP_ARGS(cpu), 1);
|
||||
|
||||
DECLARE_HOOK(android_vh_do_wake_up_sync,
|
||||
TP_PROTO(struct wait_queue_head *wq_head, int *done),
|
||||
TP_ARGS(wq_head, done));
|
||||
TP_PROTO(struct wait_queue_head *wq_head, int *done, struct sock *sk),
|
||||
TP_ARGS(wq_head, done, sk));
|
||||
|
||||
DECLARE_HOOK(android_vh_set_wake_flags,
|
||||
TP_PROTO(int *wake_flags, unsigned int *mode),
|
||||
|
||||
@@ -3276,7 +3276,7 @@ void sock_def_readable(struct sock *sk)
|
||||
if (skwq_has_sleeper(wq)) {
|
||||
int done = 0;
|
||||
|
||||
trace_android_vh_do_wake_up_sync(&wq->wait, &done);
|
||||
trace_android_vh_do_wake_up_sync(&wq->wait, &done, sk);
|
||||
if (done)
|
||||
goto out;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user