13d0407baSopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
23d0407baSopenharmony_ci#undef TRACE_SYSTEM
33d0407baSopenharmony_ci#define TRACE_SYSTEM topology
43d0407baSopenharmony_ci
53d0407baSopenharmony_ci#define TRACE_INCLUDE_PATH trace/hooks
63d0407baSopenharmony_ci
73d0407baSopenharmony_ci#if !defined(_TRACE_HOOK_TOPOLOGY_H) || defined(TRACE_HEADER_MULTI_READ)
83d0407baSopenharmony_ci#define _TRACE_HOOK_TOPOLOGY_H
93d0407baSopenharmony_ci
103d0407baSopenharmony_ci#include <linux/tracepoint.h>
113d0407baSopenharmony_ci#include <trace/hooks/vendor_hooks.h>
123d0407baSopenharmony_ci#include <linux/cpumask.h>
133d0407baSopenharmony_ci
143d0407baSopenharmony_ciDECLARE_HOOK(android_vh_arch_set_freq_scale,
153d0407baSopenharmony_ci	TP_PROTO(const struct cpumask *cpus, unsigned long freq,
163d0407baSopenharmony_ci		 unsigned long max, unsigned long *scale),
173d0407baSopenharmony_ci	TP_ARGS(cpus, freq, max, scale));
183d0407baSopenharmony_ci
193d0407baSopenharmony_ciDECLARE_HOOK(android_vh_update_topology_flags_workfn,
203d0407baSopenharmony_ci	TP_PROTO(void *unused),
213d0407baSopenharmony_ci	TP_ARGS(unused));
223d0407baSopenharmony_ci
233d0407baSopenharmony_ci/* macro versions of hooks are no longer required */
243d0407baSopenharmony_ci
253d0407baSopenharmony_ci#endif /* _TRACE_HOOK_TOPOLOGY_H */
263d0407baSopenharmony_ci/* This part must be outside protection */
273d0407baSopenharmony_ci#include <trace/define_trace.h>
28