xiaoxiang781216 commented on code in PR #21732:
URL: https://github.com/apache/nuttx/pull/21732#discussion_r4547267775
##########
arch/arm64/src/common/arm64_perf.c:
##########
@@ -68,28 +52,13 @@ void up_perf_init(void *arg)
pmu_clucntr_irq_disable(CLUSTERPMINTENCLR_EL1_C);
pmu_clucntr_enable(CLUSTERPMCNTENSET_EL1_C);
#else
- arm64_perf_start();
-#endif
-}
-
-/****************************************************************************
- * Name: arm64_perf_secondary_init
- *
- * Description:
- * Start the cycle counter of a secondary CPU. up_perf_init() runs on
- * the boot CPU only, and the cycle counter is a register of each CPU.
- * The cluster PMU is common to the CPUs: it is already started.
- *
- ****************************************************************************/
-
-#ifdef CONFIG_SMP
-void arm64_perf_secondary_init(void)
Review Comment:
why need revert the change here?
##########
arch/arm64/Kconfig:
##########
@@ -381,7 +381,7 @@ config ARCH_CORTEX_R82
select ARCH_HAVE_FPU
select ARCH_HAVE_CLUSTER_PMU
select ARM64_HAVE_NEON
- select ARCH_HAVE_PERF_EVENTS_USER_ACCESS if !ARCH_CLUSTER_PMU
+ select ARCH_HAVE_PERF_EVENTS_USER_ACCESS if !SMP && !ARCH_CLUSTER_PMU
Review Comment:
why need add !SMP?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]