summaryrefslogtreecommitdiff
path: root/tests/runtime_services
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runtime_services')
-rw-r--r--tests/runtime_services/standard_service/psci/api_tests/psci_stat/test_psci_stat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/runtime_services/standard_service/psci/api_tests/psci_stat/test_psci_stat.c b/tests/runtime_services/standard_service/psci/api_tests/psci_stat/test_psci_stat.c
index 5c0294b..e3385c1 100644
--- a/tests/runtime_services/standard_service/psci/api_tests/psci_stat/test_psci_stat.c
+++ b/tests/runtime_services/standard_service/psci/api_tests/psci_stat/test_psci_stat.c
@@ -420,12 +420,6 @@ static test_result_t test_psci_stat(void)
power_state = tftf_make_psci_pstate(pwrlvl, susp_type, state_id);
/*
- * Initialize the cpu_count to zero for synchronizing
- * participating CPUs.
- */
- cpu_count = 0;
-
- /*
* Create a synchronization point. A 2-D event array is used to
* signal every CPU by each CPU. This caters for the fact some
* CPUs may have higher performance than others and will not
@@ -439,6 +433,12 @@ static test_result_t test_psci_stat(void)
tftf_wait_for_event(&stat_sync[cpu_idx][target_idx]);
}
+ /*
+ * Initialize the cpu_count to zero for synchronizing
+ * participating CPUs.
+ */
+ cpu_count = 0;
+
ret = tftf_program_timer_and_suspend(PLAT_SUSPEND_ENTRY_TIME,
power_state, NULL, NULL);
tftf_cancel_timer();