diff options
author | spashabk-in <shakeebbk@in.ibm.com> | 2018-06-25 10:04:52 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2018-06-26 04:06:53 -0400 |
commit | bd0b22cd5586c3d97be40d02c786b762b009ef72 (patch) | |
tree | 7fa8d4627ef7e795ed4cae1ed3f0292febc14927 /src/sbefw | |
parent | 67f436de322f061a8e4140a736ef59acc256005f (diff) | |
download | talos-sbe-bd0b22cd5586c3d97be40d02c786b762b009ef72.tar.gz talos-sbe-bd0b22cd5586c3d97be40d02c786b762b009ef72.zip |
Fix timer issue in Async task
Change-Id: I5a4c6b2a4f693497901bc93d446c6fd60bca5c85
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61275
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
(cherry picked from commit 6bba2c2286ededc42bca29b74b09e1d032f52a25)
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61345
Diffstat (limited to 'src/sbefw')
-rw-r--r-- | src/sbefw/core/sbecmdprocessor.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbefw/core/sbecmdprocessor.C b/src/sbefw/core/sbecmdprocessor.C index e200babf..c0cf0353 100644 --- a/src/sbefw/core/sbecmdprocessor.C +++ b/src/sbefw/core/sbecmdprocessor.C @@ -58,7 +58,7 @@ #include "p9_sbe_io_eol_toggle.H" #endif -const uint32_t PERIODIC_TIMER_INTERVAL_MS = 24*60*60*1000; // 24 hours +const uint64_t PERIODIC_TIMER_INTERVAL_SECONDS = 24*60*60; // 24 hours using namespace fapi2; @@ -444,7 +444,7 @@ void sbeAsyncCommandProcessor_routine(void *arg) // queue, if there are more asynchronous jobs. int l_rcPk = pk_semaphore_pend ( &SBE_GLOBAL->sbeSemAsyncProcess, - PK_MILLISECONDS(PERIODIC_TIMER_INTERVAL_MS)); + PK_SECONDS(PERIODIC_TIMER_INTERVAL_SECONDS)); // PK API failure if ((-l_rcPk) != PK_SEMAPHORE_PEND_TIMED_OUT) { |