feat(interrupts): SRI triggered when SP back to wait
Implement the action to trigger SRI when SP goes into
waiting state while there are pending interrupts.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Ie983e8d22355a51e55dde0089ac6330982bb89a1
diff --git a/src/ffa/spmc/cpu_cycles.c b/src/ffa/spmc/cpu_cycles.c
index 0780260..13e8555 100644
--- a/src/ffa/spmc/cpu_cycles.c
+++ b/src/ffa/spmc/cpu_cycles.c
@@ -265,10 +265,10 @@
both_vcpu_locks = vcpu_lock_both(current, *next);
/*
- * Check if there are any pending secure virtual interrupts to
- * be handled. The `next` should have a pointer to the current
- * vCPU. Intercept call will set `ret` to FFA_INTERRUPT and the
- * respective interrupt id.
+ * Check if there is a pending interrupt, and if the partition
+ * is expects to notify the scheduler or resume straight away.
+ * Either trigger SRI for later donation of CPU cycles, or
+ * eret `FFA_INTERRUPT` back to the caller.
*/
if (ffa_interrupts_intercept_call(both_vcpu_locks.vcpu1,
both_vcpu_locks.vcpu2, ffa_ret)) {