Skip to content
Commit 008e1c71 authored by Wen Ping Teh's avatar Wen Ping Teh
Browse files

mod/system_coordinator: Check cycle count to avoid outdated phase call



Added cycle count to phase event parameters to ensure the coordinator
does not call an outdated phase when a new cycle has begun.

This prevents issues where a phase takes longer to complete than the
configured phase time or when there are too many events in the queue,
causing delays.

The cycle count is incremented with each cycle alarm elapsed. Only
events with the current cycle count will be processed and their phase
API called. Events with a mismatched cycle count will be discarded.

Signed-off-by: Wen Ping Teh's avatarWen Ping Teh <wenping.teh@arm.com>
parent 9749fddc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment