android_kernel_xiaomi_sm8450/include/soc/qcom/msm_performance.h
Varun Garg 142ed59ad0 msm_perf: Enable gPLAF algo on firmware
Added scmi transaction for working of gPLAF
algorithm on firmware. Added write method as part
of PnC algo on firmware to share data.
Added few sysfs node to notify about start/stop
of game and other data.

Change-Id: I9fc16237b7d5e16a72eaed45fca7abd68f891ccc
Signed-off-by: Varun Garg <quic_gargv@quicinc.com>
2022-02-23 22:01:50 -08:00

37 lines
787 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
*/
#ifndef __MSM_PERFORMANCE_H
#define __MSM_PERFORMANCE_H
enum gfx_evt_t {
MSM_PERF_INVAL,
MSM_PERF_QUEUE,
MSM_PERF_SUBMIT,
MSM_PERF_RETIRED
};
enum evt_update_t {
MSM_PERF_GFX,
};
#if IS_ENABLED(CONFIG_MSM_PERFORMANCE)
void msm_perf_events_update(enum evt_update_t update_typ,
enum gfx_evt_t evt_typ, pid_t pid,
uint32_t ctx_id, uint32_t timestamp, bool end_of_frame);
extern void frame_retire_notify(void);
#else
static inline void msm_perf_events_update(enum evt_update_t update_typ,
enum gfx_evt_t evt_typ, pid_t pid,
uint32_t ctx_id, uint32_t timestamp, bool end_of_frame)
{
}
extern inline void frame_retire_notify(void)
{
}
#endif
#endif