ANDROID: vendor_hooks: Fix build-break due to psi_event
Fix build-break on non-GKI builds:
kernel/sched/psi.c:538:3: error: implicit declaration
of function 'trace_android_vh_psi_event'
kernel/sched/psi.c:546:2: error: implicit declaration
of function 'trace_android_vh_psi_group'
Bug: 178721511
Fixes: commit b79d1815c4 ("ANDROID: psi: Add vendor hooks for PSI tracing")
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Change-Id: Ife54bfbc035783614bebd442b86017e83c6d23a4
This commit is contained in:
parent
d651e1d63c
commit
2ead8661c3
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,9 @@ DECLARE_HOOK(android_vh_psi_group,
|
|||
TP_PROTO(struct psi_group *group),
|
||||
TP_ARGS(group));
|
||||
|
||||
#else
|
||||
#define trace_android_vh_psi_event(t)
|
||||
#define trace_android_vh_psi_group(group)
|
||||
#endif
|
||||
|
||||
#endif /* _TRACE_HOOK_PSI_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue