request primitives are defined here.
*/
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=167;
/* header include files (.h) */
#include "common_def.h"
#ifdef LTE_L2_MEAS
#include "rg_sch_cmn.h" /* typedefs for Scheduler */
#endif
-#include "rl_interface.h"
-#include "rl_common.h"
-
+#include "sch_utils.h"
/* header/extern include files (.x) */
#include "rgr.x" /* RGR Interface includes */
#include "rgm.x" /* RGM Interface includes */
* with this SAP */
if (rgSchCb[inst].tfuSap[idx].cell != NULLP)
{
- RLOG1(L_INFO,"CELL %d\n", idx);
- RLOG1(L_INFO,"NUM UEs :%d\n",rgSchCb[inst].tfuSap[idx].cell->ueLst.nmbEnt);
+ DU_LOG("\nINFO --> SCH : CELL %d\n", idx);
+ DU_LOG("\nINFO --> SCH : NUM UEs :%d\n",rgSchCb[inst].tfuSap[idx].cell->ueLst.nmbEnt);
}
}
}
(cfg->s.schInstCfg.rgrSap[sapIdx].selector != ODU_SELECTOR_LC))
{
ret = LCM_REASON_INVALID_PAR_VAL;
- RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCfg(): unsupported"
+ DU_LOG("\nERROR --> SCH : rgSCHLmmSapCfg(): unsupported"
" Selector value for RGR.");
break;
}
(cfg->s.schInstCfg.tfuSap[sapIdx].selector != ODU_SELECTOR_LC))
{
ret = LCM_REASON_INVALID_PAR_VAL;
- RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCfg(): unsupported"
+ DU_LOG("\nERROR --> SCH : rgSCHLmmSapCfg(): unsupported"
" Selector value for TFU.");
break;
}
(cfg->s.schInstCfg.rgmSap[sapIdx].selector != RGM_SEL_TC))
{
ret = LCM_REASON_INVALID_PAR_VAL;
- RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCfg(): unsupported"
+ DU_LOG("\nERROR --> SCH : rgSCHLmmSapCfg(): unsupported"
" Selector value for RGM.");
break;
}
}
/* Free the memory held by the scheduler instance */
/* Deallocate RGR saps */
- SPutSBuf(rgSchCb[inst].rgSchInit.region,
- rgSchCb[inst].rgSchInit.pool,
- (Data *)rgSchCb[inst].rgrSap,
+ SCH_FREE(rgSchCb[inst].rgrSap,
(sizeof(RgSchUpSapCb) * rgSchCb[inst].numSaps));
rgSchCb[inst].rgrSap = NULLP;
/* Deallocate RGM saps */
- SPutSBuf(rgSchCb[inst].rgSchInit.region,
- rgSchCb[inst].rgSchInit.pool,
- (Data *)rgSchCb[inst].rgmSap,
+ SCH_FREE(rgSchCb[inst].rgmSap,
(sizeof(RgSchUpSapCb) * rgSchCb[inst].numSaps));
rgSchCb[inst].rgmSap = NULLP;
/* Deallocate TFU saps */
- SPutSBuf(rgSchCb[inst].rgSchInit.region,
- rgSchCb[inst].rgSchInit.pool,
- (Data *)rgSchCb[inst].tfuSap,
+ SCH_FREE(rgSchCb[inst].tfuSap,
(sizeof(RgSchLowSapCb) * rgSchCb[inst].numSaps));
rgSchCb[inst].tfuSap = NULLP;
/* Deallocate bndCfmResponses */
- SPutSBuf(rgSchCb[inst].rgSchInit.region,
- rgSchCb[inst].rgSchInit.pool,
- (Data *)rgSchCb[inst].genCfg.bndCfmResp,
+ SCH_FREE(rgSchCb[inst].genCfg.bndCfmResp,
(sizeof(RgSchLmResponse) * rgSchCb[inst].numSaps));
rgSchCb[inst].genCfg.bndCfmResp = NULLP;
/* De-register the Timer Service */
default:
cfm->cfm.status = LCM_PRIM_NOK;
cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
- RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmGenCntrl(): "
+ DU_LOG("\nERROR --> SCH : rgSCHLmmGenCntrl(): "
"invalid subaction=%d", cntrl->t.cntrl.subAction);
break;
}
default:
cfm->cfm.status = LCM_PRIM_NOK;
cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
- RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmGenCntrl():"
+ DU_LOG("\nERROR --> SCH : rgSCHLmmGenCntrl():"
" invalid subaction=%d", cntrl->t.cntrl.subAction);
break;
}
default:
cfm->cfm.status = LCM_PRIM_NOK;
cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
- RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmGenCntrl(): invalid"
+ DU_LOG("\nERROR --> SCH : rgSCHLmmGenCntrl(): invalid"
" action=%d", cntrl->t.cntrl.action);
break;
}
default:
cfm->cfm.status = LCM_PRIM_NOK;
cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
- RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCntrl(): "
+ DU_LOG("\nERROR --> SCH : rgSCHLmmSapCntrl(): "
"invalid action=%d", cntrl->t.cntrl.action);
break;
}
default:
cfm->cfm.status = LCM_PRIM_NOK;
cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
- RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCntrl(): "
+ DU_LOG("\nERROR --> SCH : rgSCHLmmSapCntrl(): "
"invalid action=%d", cntrl->t.cntrl.action);
break;
}
default:
cfm->cfm.status = LCM_PRIM_NOK;
cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
- RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCntrl(): "
+ DU_LOG("\nERROR --> SCH : rgSCHLmmSapCntrl(): "
"invalid action=%d", cntrl->t.cntrl.action);
break;
}
{
S16 ret = ROK;
RgSchLowSapCb *tfuSap = (RgSchLowSapCb *)cb;
-#ifdef DEBUGP
- Inst inst = tfuSap->cell->instIdx;
-#endif
switch(tmrEvnt)
}
break;
default:
- RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmTmrExpiry(): Invalid"
+ DU_LOG("\nERROR --> SCH : rgSCHLmmTmrExpiry(): Invalid"
" tmrEvnt=%d", tmrEvnt);
ret = RFAILED;
break;
}
\f
-/**
- * @brief Scheduler instance timer call back function registered with SSI.
- *
- * @details
- *
- * Function : schActvTmr
- *
- * This function is invoked by SSI for every timer activation
- * period expiry. Note that SS_MT_TMR flag needs to be enabled for this
- * as isntId is needed.As part of SRegTmr call for scheduler instance
- * SS_MT_TMR flag needs to be enabled and schActvTmr needs to be given as
- * callback function
- *
- * @return S16
- * -# ROK
- **/
-S16 schActvTmr(Ent ent,Inst inst)
-{
- Inst schInst = (inst - SCH_INST_START);
-
- /* Check if any timer in the scheduler instance has expired */
- cmPrcTmr(&rgSchCb[schInst].tmrTqCp,
- rgSchCb[schInst].tmrTq, (PFV) rgSCHLmmTmrExpiry);
-
- return ROK;
-
-} /* end of schActvTmr */
-
-\f
/**********************************************************************
End of file