ANDROID: vendor_hooks: Add hooks for ipa

Add hooks to support oem's thermal feature.

Bug: 242662879

Signed-off-by: xieliujie <xieliujie@oppo.com>
Change-Id: I4731948e92e9becb2dbd1f13851b7f849dcfd57c
This commit is contained in:
xieliujie
2022-08-16 20:42:57 +08:00
committed by Todd Kjos
parent e956d16bc2
commit a60c2d4f12
3 changed files with 7 additions and 0 deletions

View File

@@ -449,3 +449,4 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mark_page_accessed);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mmc_ffu_update_cid);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_alloc_uid);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_free_user);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_modify_thermal_cpu_get_power);

View File

@@ -246,6 +246,8 @@ static int cpufreq_get_requested_power(struct thermal_cooling_device *cdev,
*power = get_dynamic_power(cpufreq_cdev, freq);
trace_android_vh_modify_thermal_cpu_get_power(policy, power);
if (load_cpu) {
trace_thermal_power_cpu_get_power(policy->related_cpus, freq,
load_cpu, i, *power);

View File

@@ -44,6 +44,10 @@ DECLARE_HOOK(android_vh_disable_thermal_cooling_stats,
TP_PROTO(struct thermal_cooling_device *cdev, int *disable_stats),
TP_ARGS(cdev, disable_stats));
DECLARE_HOOK(android_vh_modify_thermal_cpu_get_power,
TP_PROTO(struct cpufreq_policy *policy, u32 *power),
TP_ARGS(policy, power));
#endif /* _TRACE_HOOK_THERMAL_H */
/* This part must be outside protection */
#include <trace/define_trace.h>