Remove references to deprecated W/WT naming convention

The W/WT naming convention is not used anymore.

Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
Peter Mitsis 2015-04-15 12:00:24 -04:00 committed by Anas Nashif
commit 880c109f20
4 changed files with 28 additions and 20 deletions

View file

@ -178,16 +178,20 @@ void K_ChRecvReq(struct k_args *RequestOrig)
ChxxxGetTimeType((K_ARGS_ARGS *)&(RequestProc->Args))) { ChxxxGetTimeType((K_ARGS_ARGS *)&(RequestProc->Args))) {
/*{ call is blocking } */ /*{ call is blocking } */
INSERT_ELM(pPipe->Readers, RequestProc); INSERT_ELM(pPipe->Readers, RequestProc);
RequestProc->Comm = CHDEQ_TMO; /* This is really only /*
necessay in the case * NOTE: It is both faster and simpler to blindly assign the
of a WT */ * CHDEQ_TMO microkernel command to the packet even though it
* is only useful to the finite timeout case.
*/
RequestProc->Comm = CHDEQ_TMO;
if (_TIME_B == if (_TIME_B ==
ChxxxGetTimeType( ChxxxGetTimeType(
(K_ARGS_ARGS *)&(RequestProc->Args))) { (K_ARGS_ARGS *)&(RequestProc->Args))) {
/* { TIME_B } */ /*
RequestProc->Time.timer = * The writer specified TICKS_UNLIMITED.
NULL; /* If the writer specified a W, * NULL the timer.
then NULL the timer */ */
RequestProc->Time.timer = NULL;
return; return;
} else { } else {
/* { TIME_BT } */ /* { TIME_BT } */

View file

@ -205,16 +205,20 @@ void K_ChSendReq(struct k_args *RequestOrig)
ChxxxGetTimeType((K_ARGS_ARGS *)&(RequestProc->Args))) { ChxxxGetTimeType((K_ARGS_ARGS *)&(RequestProc->Args))) {
/*{ call is blocking } */ /*{ call is blocking } */
INSERT_ELM(pPipe->Writers, RequestProc); INSERT_ELM(pPipe->Writers, RequestProc);
RequestProc->Comm = CHENQ_TMO; /* This is really only /*
necessay in the case * NOTE: It is both faster and simpler to blindly assign the
of a WT */ * CHENQ_TMO microkernel command to the packet even though it
* is only useful to the finite timeout case.
*/
RequestProc->Comm = CHENQ_TMO;
if (_TIME_B == if (_TIME_B ==
ChxxxGetTimeType( ChxxxGetTimeType(
(K_ARGS_ARGS *)&(RequestProc->Args))) { (K_ARGS_ARGS *)&(RequestProc->Args))) {
/* { TIME_B } */ /*
RequestProc->Time.timer = * The writer specified TICKS_UNLIMITED.
NULL; /* If the writer specified a W, * NULL the timer.
then NULL the timer */ */
RequestProc->Time.timer = NULL;
return; return;
} else { } else {
/* { TIME_BT } */ /* { TIME_BT } */

View file

@ -482,7 +482,7 @@ int WriterInProgressIsBlocked(struct pipe_struct *pPipe,
/*__ASSERT_NO_MSG( NULL==pReader); */ /*__ASSERT_NO_MSG( NULL==pReader); */
/* first condition: request cannot wait any longer: must be - /* first condition: request cannot wait any longer: must be -
* (non-blocked) or WT with a killed timer */ * (non-blocked) or a finite timed wait with a killed timer */
TimeType = ChxxxGetTimeType((K_ARGS_ARGS *)&(pWriter->Args)); TimeType = ChxxxGetTimeType((K_ARGS_ARGS *)&(pWriter->Args));
option = ChxxxGetChOpt((K_ARGS_ARGS *)&(pWriter->Args)); option = ChxxxGetChOpt((K_ARGS_ARGS *)&(pWriter->Args));
if (((_TIME_B == TimeType) && (_ALL_N == option)) || if (((_TIME_B == TimeType) && (_ALL_N == option)) ||
@ -527,7 +527,7 @@ int ReaderInProgressIsBlocked(struct pipe_struct *pPipe,
/*__ASSERT_NO_MSG( NULL==pWriter); */ /*__ASSERT_NO_MSG( NULL==pWriter); */
/* first condition: request cannot wait any longer: must be - /* first condition: request cannot wait any longer: must be -
* (non-blocked) or WT with a killed timer */ * (non-blocked) or a finite timed wait with a killed timer */
TimeType = ChxxxGetTimeType((K_ARGS_ARGS *)&(pReader->Args)); TimeType = ChxxxGetTimeType((K_ARGS_ARGS *)&(pReader->Args));
option = ChxxxGetChOpt((K_ARGS_ARGS *)&(pReader->Args)); option = ChxxxGetChOpt((K_ARGS_ARGS *)&(pReader->Args));
if (((_TIME_B == TimeType) && (_ALL_N == option)) || if (((_TIME_B == TimeType) && (_ALL_N == option)) ||

View file

@ -137,9 +137,8 @@ void K_event_test(struct k_args *A)
E->status = 0; E->status = 0;
A->Time.rcode = RC_OK; A->Time.rcode = RC_OK;
} else { } else {
if (likely(A->Time.ticks != if (likely(A->Time.ticks != TICKS_NONE)) {
TICKS_NONE)) {/* Caller specified W /* Caller will wait for the event */
operation */
if (likely(E->waiter == NULL)) { if (likely(E->waiter == NULL)) {
A->Ctxt.proc = K_Task; A->Ctxt.proc = K_Task;
E->waiter = A; E->waiter = A;
@ -155,7 +154,8 @@ void K_event_test(struct k_args *A)
waiter waiter
present */ present */
} }
} else { /* Caller did not specify W */ } else {
/* Caller will not wait for the event */
A->Time.rcode = RC_FAIL; A->Time.rcode = RC_FAIL;
} }
} }