mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 11:11:26 +02:00
Merge "soc: qcom: msm_perf: Port for msm_performance include"
This commit is contained in:
commit
f799138aa3
32
include/soc/qcom/msm_performance.h
Normal file
32
include/soc/qcom/msm_performance.h
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user