From a3d87702b743e4e2d2ef08f0210445b01a86c87c Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Fri, 14 May 2021 17:34:09 +0100 Subject: MLECO-1910: Fix for CPU counter difference Fixed the CPU counter being truncated by the diff function's return type. Change-Id: I9417dbc9da357f8593b67c3a94620ac6e62eddbf --- source/application/hal/include/timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/application/hal/include/timer.h') diff --git a/source/application/hal/include/timer.h b/source/application/hal/include/timer.h index 4a09fd4..426a42f 100644 --- a/source/application/hal/include/timer.h +++ b/source/application/hal/include/timer.h @@ -54,7 +54,7 @@ typedef struct _platform_timer { time_t (* get_duration_us)(time_counter *start, time_counter *end); /* Gets difference in CPU cycle counts. */ - uint32_t (* get_cpu_cycle_diff)(time_counter *start, time_counter *end); + uint64_t (* get_cpu_cycle_diff)(time_counter *start, time_counter *end); /* Gets the difference in terms of cycle counts for collected pmu counters. */ int (* get_npu_cycles_diff)(time_counter *start, time_counter *end, -- cgit v1.2.1