Skip to content

Commit 6c1c0b3

Browse files
committed
schedule: amd: set LL timer period to 500us for AMD ACP platforms
As per AMD internal hardware design requirement, the ACP DSP scheduler tick must run at 500 microseconds (2kHz) instead of the default 1ms (1kHz). Guard the 500us value with CONFIG_AMD so non-AMD platforms retain the existing 1ms default period unchanged. Signed-off-by: Sneha Voona <sneha.voona@amd.com>
1 parent efb657c commit 6c1c0b3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/include/sof/schedule/ll_schedule_domain.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
#include <stdbool.h>
2323
#include <stdint.h>
2424

25+
#if defined(CONFIG_AMD)
26+
#define LL_TIMER_PERIOD_US 500ULL /* 500us period for AMD ACP platforms */
27+
#else
2528
#define LL_TIMER_PERIOD_US 1000ULL /* default period in microseconds */
29+
#endif
2630

2731
/* Default ll watchdog timeout in microseconds.
2832
* It was decided to have a timeout of two periods to give a safe margin of time between the start

0 commit comments

Comments
 (0)