summaryrefslogtreecommitdiffstats
path: root/src/occ_405/cmdh
diff options
context:
space:
mode:
authorWael El-Essawy <welessa@us.ibm.com>2016-05-03 18:03:45 -0500
committerWael El-Essawy <welessa@us.ibm.com>2016-05-13 12:43:09 -0400
commit3ad5dcc5de34f47b029c9b0716d985c0335dd013 (patch)
treec417afd12e26995a24ed690e6b3117bb4b6f74e9 /src/occ_405/cmdh
parent81347d935a940206a2c594568f1a677241347d92 (diff)
downloadtalos-occ-3ad5dcc5de34f47b029c9b0716d985c0335dd013.tar.gz
talos-occ-3ad5dcc5de34f47b029c9b0716d985c0335dd013.zip
Commit the FSP_COMM_INITIALIZED checpoint only if no errors occur
Change-Id: I4a40950cabc7712f31b776d2a1472e0b4dd7eee8 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24044 Tested-by: FSP CI Jenkins Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Wael El-Essawy <welessa@us.ibm.com>
Diffstat (limited to 'src/occ_405/cmdh')
-rw-r--r--src/occ_405/cmdh/cmdh_thread.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/occ_405/cmdh/cmdh_thread.c b/src/occ_405/cmdh/cmdh_thread.c
index 01e8b17..1a5c08a 100644
--- a/src/occ_405/cmdh/cmdh_thread.c
+++ b/src/occ_405/cmdh/cmdh_thread.c
@@ -62,10 +62,13 @@ void Cmd_Hndl_thread_routine(void *arg)
{
// Mark Errl as committed, so FSP knows right away we are having
// problems with Attention, if that is the cause of the error.
+
commitErrl(&l_errlHndl);
}
-
- CHECKPOINT(FSP_COMM_INITIALIZED);
+ else // Mark the Checkpoint only if no error was logged
+ {
+ CHECKPOINT(FSP_COMM_INITIALIZED);
+ }
// ------------------------------------------------
// Loop forever, handling FSP commands
OpenPOWER on IntegriCloud