Skip to content

Commit

Permalink
Fix timer issue in Async task
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Shakeebbk authored and sgupta2m committed Jun 26, 2018
1 parent 67f436d commit bd0b22c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sbefw/core/sbecmdprocessor.C
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit bd0b22c

Please sign in to comment.