soc: qcom: msm_perf: Port for msm_performance include

Port for msm_performance include file from 5.15 to KP3.0

Change-Id: Ia7cc1116ad7a74da9a191ee8a7a3d087a371ab8d
Signed-off-by: Badri Sampath <quic_badris@quicinc.com>
This commit is contained in:
Badri Sampath 2022-06-29 14:31:23 -07:00
parent 5a1f4af368
commit 0608822629

View File

@ -0,0 +1,32 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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);
#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)
{
}
#endif
#endif