]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/commit
[PDK-12327] freertos: c66x: port: use TSC counter for runtime calc
authorDon Dominic <a0486429@ti.com>
Tue, 24 Jan 2023 13:11:45 +0000 (18:41 +0530)
committerDon Dominic <a0486429@ti.com>
Mon, 30 Jan 2023 17:32:05 +0000 (23:02 +0530)
commit1709d91d63256093f1d1ec4defdc0f40fb2f58fa
treef892924061ba61f7c558833f9eb9d6e8fd44104d
parent37494942906dfc20c3657bde4b5d88cd8dca7198
[PDK-12327] freertos: c66x: port: use TSC counter for runtime calc

- Use TSC counter in C66x CPU for calculating current run time
- This reverts commit c6e34646389c5910fda8e1a2787bcc53a98aff24
  "[PDK-10107] FreeRTOS: C66x: Use OS Tick Timer instead of TSC Counter"
  which was updated along with R5F so that the portable layer would be
  having similar implementation for both ISA.
- Unlike R5F PMU counter halts during wfi(IDLE) mode,
  There is no such limitation in C66x to use TSC counter
- Also usage of TSC counter available in the CPU itself will be having
  lesser overhead compared to reading DM Timer (OS Tick Timer) registers
  each time for run time calculations
- This also fixes PDK-12327 on C66x, FreeRTOS task stats reporting total
  CPU load > 100%

Signed-off-by: Don Dominic <a0486429@ti.com>
packages/ti/kernel/freertos/portable/TI_CGT/c66/port.c