Skip to content

Commit

Permalink
arch/arm64: Add up_perf_init for qemu.
Browse files Browse the repository at this point in the history
This commit added up_perf_init for qemu.

Signed-off-by: ouyangxiangzhen <[email protected]>
  • Loading branch information
Fix-Point authored and raiden00pl committed Mar 6, 2025
1 parent 9a02572 commit 219fb1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm64/src/qemu/qemu_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 2 additions & 0 deletions arch/arm64/src/qemu/qemu_boot.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
* Pre-processor Definitions
****************************************************************************/

#define CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 62500000

/****************************************************************************
* Public Function Prototypes
****************************************************************************/
Expand Down

0 comments on commit 219fb1a

Please sign in to comment.