RISC-V: Add a perf core library for pmu drivers
[platform/kernel/linux-starfive.git] / drivers / perf / Kconfig
index 77522e5..03ca031 100644 (file)
@@ -56,6 +56,16 @@ config ARM_PMU
          Say y if you want to use CPU performance monitors on ARM-based
          systems.
 
+config RISCV_PMU
+       depends on RISCV
+       bool "RISC-V PMU framework"
+       default y
+       help
+         Say y if you want to use CPU performance monitors on RISCV-based
+         systems. This provides the core PMU framework that abstracts common
+         PMU functionalities in a core library so that different PMU drivers
+         can reuse it.
+
 config ARM_PMU_ACPI
        depends on ARM_PMU && ACPI
        def_bool y