summaryrefslogtreecommitdiff
path: root/drivers/perf/arm_cspmu/nvidia_cspmu.h
diff options
context:
space:
mode:
authorBesar Wicaksono <bwicaksono@nvidia.com>2023-08-22 02:16:08 +0300
committerWill Deacon <will@kernel.org>2023-10-05 15:58:27 +0300
commitbfc653aa89cb05796d7b4e046600accb442c9b7a (patch)
tree341e2eb94006233db1a65aead07e3e5f1719178e /drivers/perf/arm_cspmu/nvidia_cspmu.h
parent6465e260f48790807eef06b583b38ca9789b6072 (diff)
downloadlinux-bfc653aa89cb05796d7b4e046600accb442c9b7a.tar.xz
perf: arm_cspmu: Separate Arm and vendor module
Arm Coresight PMU driver consists of main standard code and vendor backend code. Both are currently built as a single module. This patch adds vendor registration API to separate the two to keep things modular. The main driver requests each known backend module during initialization and defer device binding process. The backend module then registers an init callback to the main driver and continue the device driver binding process. Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Reviewed-and-tested-by: Ilkka Koskinen <ilkka@os.amperecomputing.com> Link: https://lore.kernel.org/r/20230821231608.50911-1-bwicaksono@nvidia.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf/arm_cspmu/nvidia_cspmu.h')
-rw-r--r--drivers/perf/arm_cspmu/nvidia_cspmu.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/perf/arm_cspmu/nvidia_cspmu.h b/drivers/perf/arm_cspmu/nvidia_cspmu.h
deleted file mode 100644
index 71e18f0dc50b..000000000000
--- a/drivers/perf/arm_cspmu/nvidia_cspmu.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0
- *
- * Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
- *
- */
-
-/* Support for NVIDIA specific attributes. */
-
-#ifndef __NVIDIA_CSPMU_H__
-#define __NVIDIA_CSPMU_H__
-
-#include "arm_cspmu.h"
-
-/* Allocate NVIDIA descriptor. */
-int nv_cspmu_init_ops(struct arm_cspmu *cspmu);
-
-#endif /* __NVIDIA_CSPMU_H__ */