heap: use hal specific API to get cpu cycles count

This fixes compilation issue of heap tracing feature for RISC-V
architecture.
This commit is contained in:
Mahavir Jain
2021-06-11 13:08:11 +05:30
committed by bot
parent bdb01b8285
commit 9ac9b69087
2 changed files with 3 additions and 1 deletions

View File

@@ -19,7 +19,7 @@
/* Encode the CPU ID in the LSB of the ccount value */
inline static uint32_t get_ccount(void)
{
uint32_t ccount = xthal_get_ccount() & ~3;
uint32_t ccount = cpu_hal_get_cycle_count() & ~3;
#ifndef CONFIG_FREERTOS_UNICORE
ccount |= xPortGetCoreID();
#endif