mirror of
https://github.com/apache/nuttx.git
synced 2026-03-27 02:29:15 +08:00
arch/arm64: Add up_perf_init for qemu.
This commit added up_perf_init for qemu. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
committed by
Mateusz Szafoni
parent
9a02572e8e
commit
219fb1a717
@@ -190,4 +190,8 @@ void arm64_chip_boot(void)
|
||||
#ifdef CONFIG_SYSLOG_RPMSG
|
||||
syslog_rpmsg_init_early(g_syslog_rpmsg_buf, sizeof(g_syslog_rpmsg_buf));
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARCH_PERF_EVENTS
|
||||
up_perf_init((void *)CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
#define CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 62500000
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user