osaf/libs/core/leap/include/sysf_ipc.h | 23 +----------------------
osaf/libs/core/leap/sysf_ipc.c | 6 ------
2 files changed, 1 insertions(+), 28 deletions(-)
diff --git a/osaf/libs/core/leap/include/sysf_ipc.h
b/osaf/libs/core/leap/include/sysf_ipc.h
--- a/osaf/libs/core/leap/include/sysf_ipc.h
+++ b/osaf/libs/core/leap/include/sysf_ipc.h
@@ -41,25 +41,10 @@
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- H&J Internal Messaging Facility Definitions
+ Internal Messaging Facility Definitions
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
-/**
- **
- ** Posting Events or IPC Messages.
- **
- ** The set of macros provided here can be modified at integration time to
- ** make use of a Target System's IPC or Queueing facilities already in
- ** existance.
- **
- **/
-
-#define m_NCS_SM_IPC_ELEM_ADD(a)
-#define m_NCS_SM_IPC_ELEM_DEL(a)
-#define m_NCS_SM_IPC_ELEM_CUR_DEPTH_INC(a)
-#define m_NCS_SM_IPC_ELEM_CUR_DEPTH_DEC(a)
-
typedef struct ncs_ipc_queue {
NCS_IPC_MSG *head;
NCS_IPC_MSG *tail;
@@ -103,10 +88,4 @@ typedef struct tag_ncs_ipc {
char *name; /* mbx task name */
} NCS_IPC;
-#define m_NCS_SYSM_LM_OP_IPC_LBGN(info) NCSCC_RC_FAILURE
-#define m_NCS_SYSM_LM_OP_IPC_LTCY(info) NCSCC_RC_FAILURE
-
-#define m_NCS_SET_ST_QLAT()
-#define m_NCS_SET_FN_QLAT()
-
#endif /* SYSF_IPC_H */
diff --git a/osaf/libs/core/leap/sysf_ipc.c b/osaf/libs/core/leap/sysf_ipc.c
--- a/osaf/libs/core/leap/sysf_ipc.c
+++ b/osaf/libs/core/leap/sysf_ipc.c
@@ -97,7 +97,6 @@ uint32_t ncs_ipc_create(SYSF_MBX *mbx)
ncs_ipc->active_queue = 0;
- m_NCS_SM_IPC_ELEM_ADD(ncs_ipc);
return rc;
}
@@ -131,7 +130,6 @@ static uint32_t ipc_flush(NCS_IPC *ncs_i
cur_queue->tail = p_prev;
}
- m_NCS_SM_IPC_ELEM_CUR_DEPTH_DEC(ncs_ipc);
ipc_dequeue_ind_processing(ncs_ipc, ind);
}
msg = p_next;
@@ -200,7 +198,6 @@ uint32_t ncs_ipc_release(SYSF_MBX *mbx,
m_NCS_SEL_OBJ_RMV_OPERATION_SHUT(&ncs_ipc->sel_obj);
m_NCS_LOCK_DESTROY(&ncs_ipc->queue_lock);
- m_NCS_SM_IPC_ELEM_DEL(ncs_ipc);
if (ncs_ipc->name != NULL)
m_NCS_MEM_FREE(ncs_ipc->name, NCS_MEM_REGION_PERSISTENT,
NCS_SERVICE_ID_OS_SVCS, 1);
@@ -375,15 +372,12 @@ static NCS_IPC_MSG *ncs_ipc_recv_common(
/* get item from head of (ACTIVE) queue... */
for (active_queue = 0; active_queue <
NCS_IPC_PRIO_LEVELS; active_queue++) {
if ((msg = ncs_ipc->queue[active_queue].head)
!= NULL) {
- m_NCS_SET_FN_QLAT();
if ((ncs_ipc->queue[active_queue].head
= msg->next) == NULL)
ncs_ipc->queue[active_queue].tail = NULL;
msg->next = NULL;
/* ncs_ipc->active_queue = active_queue
^ 0x01; */
-
m_NCS_SM_IPC_ELEM_CUR_DEPTH_DEC(ncs_ipc);
-
if (ipc_dequeue_ind_processing(ncs_ipc,
active_queue) != NCSCC_RC_SUCCESS) {
m_NCS_UNLOCK(&ncs_ipc->queue_lock, NCS_LOCK_WRITE);
ncshm_give_hdl((uint32_t)*mbx);
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel