summaryrefslogtreecommitdiffstats
path: root/src/sbefw/core/sbemain.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbefw/core/sbemain.C')
-rw-r--r--src/sbefw/core/sbemain.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sbefw/core/sbemain.C b/src/sbefw/core/sbemain.C
index bc84739b..327c3339 100644
--- a/src/sbefw/core/sbemain.C
+++ b/src/sbefw/core/sbemain.C
@@ -49,6 +49,9 @@
// Max defines for Semaphores
static uint32_t MAX_SEMAPHORE_COUNT = 3;
+// As periodic timer expire in 24 hours count should never
+// be more than 1.
+static uint32_t MAX_PERIODIC_TIMER_SEMAPHORE_COUNT = 1;
extern "C"
{
// These variables are declared in linker script to keep track of
@@ -119,6 +122,12 @@ uint32_t sbeInitSems(void)
{
break;
}
+ l_rc = pk_semaphore_create(&SBE_GLOBAL->sbeSemAsyncProcess, 0,
+ MAX_PERIODIC_TIMER_SEMAPHORE_COUNT);
+ if (l_rc)
+ {
+ break;
+ }
} while (false);
if (l_rc)
OpenPOWER on IntegriCloud