diff options
Diffstat (limited to 'tests/runtime_services')
-rw-r--r-- | tests/runtime_services/standard_service/psci/system_tests/test_psci_on_off_suspend_stress.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/runtime_services/standard_service/psci/system_tests/test_psci_on_off_suspend_stress.c b/tests/runtime_services/standard_service/psci/system_tests/test_psci_on_off_suspend_stress.c index 12c3892..2d71b30 100644 --- a/tests/runtime_services/standard_service/psci/system_tests/test_psci_on_off_suspend_stress.c +++ b/tests/runtime_services/standard_service/psci/system_tests/test_psci_on_off_suspend_stress.c @@ -480,11 +480,9 @@ static test_result_t launch_cpu_on_off_stress(void) int ret; spin_lock(&counter_lock); - ++cpu_on_count; - spin_unlock(&counter_lock); - /* Store the count in a temporary variable */ - temp_count = cpu_on_count; + temp_count = ++cpu_on_count; + spin_unlock(&counter_lock); if (exit_test) return TEST_RESULT_SUCCESS; |