rtl8188eu: Remove wrapper routine rtw_get_current_time()

This wrapper can be replaced with jiffies.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2015-08-15 16:34:17 -05:00
parent e6a0d110e4
commit 1e6accffc4
21 changed files with 67 additions and 82 deletions

View file

@ -68,7 +68,7 @@ static s32 iol_execute(struct adapter *padapter, u8 control)
/* DBG_871X("%s reg_0x88:0x%02x, write 0x%02x\n", __FUNCTION__, reg_0x88, reg_0x88|control); */
rtw_write8(padapter, REG_HMEBOX_E0, reg_0x88|control);
t1 = start = rtw_get_current_time();
t1 = start = jiffies;
while (
/* reg_1c7 = rtw_read8(padapter, 0x1c7) >1) && */
(reg_0x88=rtw_read8(padapter, REG_HMEBOX_E0)) & control
@ -82,7 +82,7 @@ static s32 iol_execute(struct adapter *padapter, u8 control)
status = (reg_0x88 & control)?_FAIL:_SUCCESS;
if (reg_0x88 & control<<4)
status = _FAIL;
t2= rtw_get_current_time();
t2= jiffies;
/* printk("==> step iol_execute : %5u reg-0x1c0= 0x%02x\n",rtw_get_time_interval_ms(t1,t2),rtw_read8(padapter, 0x1c0)); */
/* DBG_871X("%s in %u ms, reg_0x88:0x%02x\n", __FUNCTION__, passing_time, reg_0x88); */
@ -318,7 +318,7 @@ static void efuse_read_phymap_from_txpktbuf(
/* DBG_871X("%s write reg_0x143:0x00\n", __FUNCTION__); */
rtw_write8(adapter, REG_TXPKTBUF_DBG, 0);
start = rtw_get_current_time();
start = jiffies;
while (!(reg_0x143=rtw_read8(adapter, REG_TXPKTBUF_DBG))/* dbg */
/* while (rtw_read8(adapter, REG_TXPKTBUF_DBG) & BIT0 */
&& (passing_time=rtw_get_passing_time_ms(start))<1000
@ -436,7 +436,7 @@ static s32 iol_ioconfig(
static int rtl8188e_IOL_exec_cmds_sync(struct adapter *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms,u32 bndy_cnt)
{
u32 start_time = rtw_get_current_time();
u32 start_time = jiffies;
u32 passing_time_ms;
u8 polling_ret,i;
int ret = _FAIL;
@ -456,7 +456,7 @@ static int rtl8188e_IOL_exec_cmds_sync(struct adapter *adapter, struct xmit_fram
dump_mgntframe_and_wait(adapter, xmit_frame, max_wating_ms);
t1= rtw_get_current_time();
t1= jiffies;
iol_mode_enable(adapter, 1);
for (i=0;i<bndy_cnt;i++) {
u8 page_no = 0;
@ -468,7 +468,7 @@ static int rtl8188e_IOL_exec_cmds_sync(struct adapter *adapter, struct xmit_fram
}
}
iol_mode_enable(adapter, 0);
t2 = rtw_get_current_time();
t2 = jiffies;
/* printk("==> %s : %5u\n",__FUNCTION__,rtw_get_time_interval_ms(t1,t2)); */
exit:
/* restore BCN_HEAD */

View file

@ -36,7 +36,7 @@ void rtl8188e_sreset_xmit_status_check(struct adapter *padapter)
DBG_871X("%s REG_TXDMA_STATUS:0x%08x\n", __FUNCTION__, txdma_status);
rtw_hal_sreset_reset(padapter);
}
current_time = rtw_get_current_time();
current_time = jiffies;
if (0 == pxmitpriv->free_xmitbuf_cnt || 0 == pxmitpriv->free_xmit_extbuf_cnt) {

View file

@ -1161,7 +1161,7 @@ static u32 rtl8188eu_hal_init(struct adapter *Adapter)
struct btcoexist_priv *pbtpriv = &(pHalData->bt_coexist);
#endif
u32 init_start_time = rtw_get_current_time();
u32 init_start_time = jiffies;
#ifdef DBG_HAL_INIT_PROFILING
@ -1231,7 +1231,7 @@ static u32 rtl8188eu_hal_init(struct adapter *Adapter)
for (hal_init_profiling_i=0;hal_init_profiling_i<HAL_INIT_STAGES_NUM;hal_init_profiling_i++)
hal_init_stages_timestamp[hal_init_profiling_i]=0;
#define HAL_INIT_PROFILE_TAG(stage) hal_init_stages_timestamp[(stage)]=rtw_get_current_time();
#define HAL_INIT_PROFILE_TAG(stage) hal_init_stages_timestamp[(stage)]=jiffies;
#else
#define HAL_INIT_PROFILE_TAG(stage) do {} while (0)
#endif /* DBG_HAL_INIT_PROFILING */
@ -1525,7 +1525,7 @@ exit:
DBG_871X("%s in %dms\n", __FUNCTION__, rtw_get_passing_time_ms(init_start_time));
#ifdef DBG_HAL_INIT_PROFILING
hal_init_stages_timestamp[HAL_INIT_STAGES_END]=rtw_get_current_time();
hal_init_stages_timestamp[HAL_INIT_STAGES_END]=jiffies;
for (hal_init_profiling_i=0;hal_init_profiling_i<HAL_INIT_STAGES_NUM-1;hal_init_profiling_i++) {
DBG_871X("DBG_HAL_INIT_PROFILING: %35s, %u, %5u, %5u\n"
@ -1975,7 +1975,7 @@ _ReadRFType(
static int _ReadAdapterInfo8188EU(struct adapter *Adapter)
{
/* HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); */
u32 start=rtw_get_current_time();
u32 start=jiffies;
MSG_8192C("====> %s\n", __FUNCTION__);