mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-08 15:23:53 +00:00
Replace rtw_get_current_time() with jiffies
Port of c01fb49636b65ceea513c00966c58b8bdb095c8f
This commit is contained in:
@@ -693,7 +693,7 @@ u32 rtl8192eu_hal_init(PADAPTER Adapter)
|
||||
rt_rf_power_state eRfPowerStateToSet;
|
||||
|
||||
|
||||
systime init_start_time = rtw_get_current_time();
|
||||
systime init_start_time = jiffies;
|
||||
|
||||
|
||||
#ifdef DBG_HAL_INIT_PROFILING
|
||||
@@ -763,7 +763,7 @@ u32 rtl8192eu_hal_init(PADAPTER 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) do { hal_init_stages_timestamp[(stage)] = rtw_get_current_time(); } while (0)
|
||||
#define HAL_INIT_PROFILE_TAG(stage) do { hal_init_stages_timestamp[(stage)] = jiffies; } while (0)
|
||||
#else
|
||||
#define HAL_INIT_PROFILE_TAG(stage) do {} while (0)
|
||||
#endif /* DBG_HAL_INIT_PROFILING */
|
||||
@@ -1123,7 +1123,7 @@ exit:
|
||||
RTW_INFO("%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++) {
|
||||
RTW_INFO("DBG_HAL_INIT_PROFILING: %35s, %u, %5u, %5u\n"
|
||||
|
||||
@@ -50,7 +50,7 @@ void interrupt_handler_8192eu(_adapter *padapter, u16 pkt_len, u8 *pbuf)
|
||||
if (pHalData->IntArray[0] & IMR_BCNDMAINT0_88E) {
|
||||
struct tdls_ch_switch *pchsw_info = &padapter->tdlsinfo.chsw_info;
|
||||
u32 last_time = pchsw_info->cur_time;
|
||||
pchsw_info->cur_time = rtw_systime_to_ms(rtw_get_current_time());
|
||||
pchsw_info->cur_time = rtw_systime_to_ms(jiffies);
|
||||
if ((atomic_read(&pchsw_info->chsw_on) == _TRUE) &&
|
||||
/* Sometimes we receive multiple interrupts in very little time period, use the follow condition test to filter */
|
||||
(pchsw_info->cur_time - last_time > padapter->mlmeextpriv.mlmext_info.bcn_interval - 5) &&
|
||||
|
||||
Reference in New Issue
Block a user