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:
Jindong Yue 2021-04-23 16:40:14 +08:00 committed by Suren Baghdasaryan
commit 2ead8661c3

View file

@ -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 */