rename del_timer() to timer_delete() and del_timer_sync() to timer_delete_sync()

This commit is contained in:
vorasilp
2025-06-05 08:29:35 +07:00
parent 9023002502
commit d4b3cdebfe
5 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -527,7 +527,7 @@ static void aicwf_sdio_bus_stop(struct device *dev)
aicwf_sdio_pwrctl_timer(sdiodev, 0); aicwf_sdio_pwrctl_timer(sdiodev, 0);
if(timer_pending(&sdiodev->rwnx_hw->p2p_alive_timer)){ if(timer_pending(&sdiodev->rwnx_hw->p2p_alive_timer)){
ret = del_timer(&sdiodev->rwnx_hw->p2p_alive_timer);} ret = timer_delete(&sdiodev->rwnx_hw->p2p_alive_timer);}
sdio_dbg("%s\n",__func__); sdio_dbg("%s\n",__func__);
if (sdiodev->pwrctl_tsk) { if (sdiodev->pwrctl_tsk) {
complete(&sdiodev->pwrctrl_trgg); complete(&sdiodev->pwrctrl_trgg);
@@ -1080,7 +1080,7 @@ void aicwf_sdio_pwrctl_timer(struct aic_sdio_dev *sdiodev, uint duration)
spin_lock_bh(&sdiodev->pwrctl_lock); spin_lock_bh(&sdiodev->pwrctl_lock);
if (!duration) { if (!duration) {
if (timer_pending(&sdiodev->timer)) if (timer_pending(&sdiodev->timer))
del_timer_sync(&sdiodev->timer); timer_delete_sync(&sdiodev->timer);
} else { } else {
sdiodev->active_duration = duration; sdiodev->active_duration = duration;
timeout = msecs_to_jiffies(sdiodev->active_duration); timeout = msecs_to_jiffies(sdiodev->active_duration);
+4 -4
View File
@@ -106,7 +106,7 @@ void tcp_ack_deinit(struct rwnx_hw *priv)
drop_msg = NULL; drop_msg = NULL;
write_seqlock_bh(&ack_m->ack_info[i].seqlock); write_seqlock_bh(&ack_m->ack_info[i].seqlock);
del_timer(&ack_m->ack_info[i].timer); timer_delete(&ack_m->ack_info[i].timer);
drop_msg = ack_m->ack_info[i].msgbuf; drop_msg = ack_m->ack_info[i].msgbuf;
ack_m->ack_info[i].msgbuf = NULL; ack_m->ack_info[i].msgbuf = NULL;
write_sequnlock_bh(&ack_m->ack_info[i].seqlock); write_sequnlock_bh(&ack_m->ack_info[i].seqlock);
@@ -375,7 +375,7 @@ int tcp_ack_handle(struct msg_buf *new_msgbuf,
//printk("%lx \n",ack_info->msgbuf); //printk("%lx \n",ack_info->msgbuf);
drop_msg = ack_info->msgbuf; drop_msg = ack_info->msgbuf;
ack_info->msgbuf = NULL; ack_info->msgbuf = NULL;
del_timer(&ack_info->timer); timer_delete(&ack_info->timer);
}else{ }else{
//printk("msgbuf is NULL \n"); //printk("msgbuf is NULL \n");
} }
@@ -409,7 +409,7 @@ int tcp_ack_handle(struct msg_buf *new_msgbuf,
atomic_read(&ack_m->max_drop_cnt)))) { atomic_read(&ack_m->max_drop_cnt)))) {
ack_info->drop_cnt = 0; ack_info->drop_cnt = 0;
ack_info->in_send_msg = new_msgbuf; ack_info->in_send_msg = new_msgbuf;
del_timer(&ack_info->timer); timer_delete(&ack_info->timer);
} else { } else {
ret = 1; ret = 1;
ack_info->msgbuf = new_msgbuf; ack_info->msgbuf = new_msgbuf;
@@ -472,7 +472,7 @@ int tcp_ack_handle_new(struct msg_buf *new_msgbuf,
ack_info->drop_cnt = 0; ack_info->drop_cnt = 0;
send_msg = new_msgbuf; send_msg = new_msgbuf;
ack_info->in_send_msg = send_msg; ack_info->in_send_msg = send_msg;
del_timer(&ack_info->timer); timer_delete(&ack_info->timer);
}else{ }else{
ret = 1; ret = 1;
ack_info->msgbuf = new_msgbuf; ack_info->msgbuf = new_msgbuf;
+1 -1
View File
@@ -2483,7 +2483,7 @@ static void aicwf_usb_disconnect(struct usb_interface *intf)
#if 0 #if 0
if(timer_pending(&usb_dev->rwnx_hw->p2p_alive_timer) && usb_dev->rwnx_hw->is_p2p_alive == 1){ if(timer_pending(&usb_dev->rwnx_hw->p2p_alive_timer) && usb_dev->rwnx_hw->is_p2p_alive == 1){
printk("%s del timer rwnx_hw->p2p_alive_timer \r\n", __func__); printk("%s del timer rwnx_hw->p2p_alive_timer \r\n", __func__);
rwnx_del_timer(&usb_dev->rwnx_hw->p2p_alive_timer); rwnx_timer_delete(&usb_dev->rwnx_hw->p2p_alive_timer);
} }
#endif #endif
aicwf_bus_deinit(usb_dev->dev); aicwf_bus_deinit(usb_dev->dev);
+2 -2
View File
@@ -2191,7 +2191,7 @@ static int rwnx_cfg80211_del_iface(struct wiphy *wiphy, struct wireless_dev *wde
#if 0 #if 0
if (rwnx_vif == rwnx_hw->p2p_dev_vif) { if (rwnx_vif == rwnx_hw->p2p_dev_vif) {
if (timer_pending(&rwnx_hw->p2p_alive_timer)) { if (timer_pending(&rwnx_hw->p2p_alive_timer)) {
del_timer_sync(&rwnx_hw->p2p_alive_timer); timer_delete_sync(&rwnx_hw->p2p_alive_timer);
} }
} }
#endif #endif
@@ -2440,7 +2440,7 @@ static void rwnx_cfgp2p_stop_p2p_device(struct wiphy *wiphy, struct wireless_dev
if (rwnx_vif == rwnx_hw->p2p_dev_vif) { if (rwnx_vif == rwnx_hw->p2p_dev_vif) {
rwnx_hw->is_p2p_alive = 0; rwnx_hw->is_p2p_alive = 0;
if (timer_pending(&rwnx_hw->p2p_alive_timer)) { if (timer_pending(&rwnx_hw->p2p_alive_timer)) {
del_timer_sync(&rwnx_hw->p2p_alive_timer); timer_delete_sync(&rwnx_hw->p2p_alive_timer);
} }
if (rwnx_vif->up) { if (rwnx_vif->up) {
rwnx_send_remove_if(rwnx_hw, rwnx_vif->vif_index, true); rwnx_send_remove_if(rwnx_hw, rwnx_vif->vif_index, true);
+3 -3
View File
@@ -1428,7 +1428,7 @@ int reord_flush_tid(struct aicwf_rx_priv *rx_priv, struct sk_buff *skb, u8 tid)
preorder_ctrl->enable = false; preorder_ctrl->enable = false;
spin_unlock_irqrestore(&preorder_ctrl->reord_list_lock, flags); spin_unlock_irqrestore(&preorder_ctrl->reord_list_lock, flags);
if (timer_pending(&preorder_ctrl->reord_timer)) if (timer_pending(&preorder_ctrl->reord_timer))
ret = del_timer_sync(&preorder_ctrl->reord_timer); ret = timer_delete_sync(&preorder_ctrl->reord_timer);
cancel_work_sync(&preorder_ctrl->reord_timer_work); cancel_work_sync(&preorder_ctrl->reord_timer_work);
return 0; return 0;
@@ -1454,7 +1454,7 @@ void reord_deinit_sta(struct aicwf_rx_priv* rx_priv, struct reord_ctrl_info *reo
if(preorder_ctrl->enable){ if(preorder_ctrl->enable){
preorder_ctrl->enable = false; preorder_ctrl->enable = false;
if (timer_pending(&preorder_ctrl->reord_timer)) { if (timer_pending(&preorder_ctrl->reord_timer)) {
ret = del_timer_sync(&preorder_ctrl->reord_timer); ret = timer_delete_sync(&preorder_ctrl->reord_timer);
} }
cancel_work_sync(&preorder_ctrl->reord_timer_work); cancel_work_sync(&preorder_ctrl->reord_timer_work);
} }
@@ -1833,7 +1833,7 @@ int reord_process_unit(struct aicwf_rx_priv *rx_priv, struct sk_buff *skb, u16 s
} }
} else { } else {
if(timer_pending(&preorder_ctrl->reord_timer)) { if(timer_pending(&preorder_ctrl->reord_timer)) {
ret = del_timer(&preorder_ctrl->reord_timer); ret = timer_delete(&preorder_ctrl->reord_timer);
} }
} }