ANDROID: scmi_cpufreq: Add restricted vendor hook for scmi_limit_notify_cb
Include a restricted vendor hook to allow vendor modules to modify thermal updates under scmi notifications. Bug: 436290872 Change-Id: I57e33ea44b66986058008ac83737524a8c31aec0 Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
This commit is contained in:
committed by
John Stultz
parent
052da8f4d4
commit
a475a3d8e5
@@ -10,6 +10,7 @@
|
||||
#include <trace/hooks/vendor_hooks.h>
|
||||
|
||||
struct cpufreq_policy;
|
||||
struct device;
|
||||
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_show_max_freq,
|
||||
TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
|
||||
@@ -42,6 +43,10 @@ DECLARE_RESTRICTED_HOOK(android_rvh_cpufreq_transition,
|
||||
TP_PROTO(struct cpufreq_policy *policy),
|
||||
TP_ARGS(policy), 1);
|
||||
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_scmi_limit_notify_cb,
|
||||
TP_PROTO(bool *done, struct device *cpu_dev, unsigned int limit_freq_khz),
|
||||
TP_ARGS(done, cpu_dev, limit_freq_khz), 1);
|
||||
|
||||
#endif /* _TRACE_HOOK_CPUFREQ_H */
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
|
||||
Reference in New Issue
Block a user