perf: riscv_pmu_sbi: Set SYSCTL_LEGACY by default
[platform/kernel/linux-starfive.git] / drivers / perf / riscv_pmu_sbi.c
index cd8a2b9..5e29226 100644 (file)
@@ -51,8 +51,9 @@ static const struct attribute_group *riscv_pmu_attr_groups[] = {
        NULL,
 };
 
-/* Allow user mode access by default */
-static int sysctl_perf_user_access __read_mostly = SYSCTL_USER_ACCESS;
+/* WORKAROUND: Allow legacy mode by default when SOC is starfive */
+static int sysctl_perf_user_access __read_mostly = SYSCTL_LEGACY;
+
 
 /*
  * RISC-V doesn't have heterogeneous harts yet. This need to be part of