android_kernel_xiaomi_sm8450/include/soc/qcom/qcom_llcc_pmu.h
Amir Vajid bcf61763bc perf: make qcom_llcc_pmu into a module
Update qcom_llcc_pmu to be a module and export the
PMU hw type so clients can explicitly request for
this PMU through the perf framework.

Change-Id: I6b6eb33a3a5b97200ec65307d138497893d29e69
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
2020-12-15 08:52:08 -08:00

23 lines
417 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/
#ifndef _QCOM_LLCC_PMU_H
#define _QCOM_LLCC_PMU_H
#include <linux/kernel.h>
#define QCOM_LLCC_PMU_RD_EV 0x1000
#if IS_ENABLED(CONFIG_QCOM_LLCC_PMU)
int qcom_llcc_pmu_hw_type(u32 *type);
#else
static inline int qcom_llcc_pmu_hw_type(u32 *type)
{
return 0;
}
#endif
#endif /* _QCOM_LLCC_PMU_H */