diff options
author | Chris Cain <cjcain@us.ibm.com> | 2014-12-17 15:56:28 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-01-09 14:51:07 -0600 |
commit | 1fe250207a9cda3203839ec0df06030b8a627b50 (patch) | |
tree | 241b621ca64defc4e0b977198ef161027bbb7c4c /src/usr/htmgt/htmgt.C | |
parent | 3f6be5b4c621d2762bd3ddd457c082fbc12f93b5 (diff) | |
download | talos-hostboot-1fe250207a9cda3203839ec0df06030b8a627b50.tar.gz talos-hostboot-1fe250207a9cda3203839ec0df06030b8a627b50.zip |
Limit number of error logs retrieved from the OCC to prevent holding off IPL
Change-Id: Ibb82a8776e40c17097c952b80f7b5536ad7503b4
RTC: 119981
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14964
Tested-by: Jenkins Server
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: Matt Spinler <spinler@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt/htmgt.C')
-rw-r--r-- | src/usr/htmgt/htmgt.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/usr/htmgt/htmgt.C b/src/usr/htmgt/htmgt.C index 64307591f..53a01be10 100644 --- a/src/usr/htmgt/htmgt.C +++ b/src/usr/htmgt/htmgt.C @@ -34,6 +34,7 @@ #include "htmgt_memthrottles.H" #include "htmgt_poll.H" #include <devicefw/userif.H> +#include <config.h> // Targeting support #include <targeting/common/commontargeting.H> @@ -124,6 +125,24 @@ namespace HTMGT ERRORLOG::errlCommit(l_err, HTMGT_COMP_ID); l_err = NULL; } + + // @TODO RTC 120059 remove after elog alerts supported +#ifdef CONFIG_DELAY_AFTER_OCC_ACTIVATION + // Delay to allow the OCC to complete several + // sensor readings and create errors if necessary + TMGT_INF("Delay after OCC activation"); + nanosleep(30, 0); + // Poll the OCCs to retrieve any errors that may + // have been created + TMGT_INF("Send final poll to all OCCs"); + l_err = sendOccPoll(true); + if (l_err) + { + ERRORLOG::errlCommit(l_err, HTMGT_COMP_ID); + l_err = NULL; + } +#endif + } while(0); } else |