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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user