mirror of https://gitee.com/openkylin/linux.git
iwlwifi: don't disable interrupt in iwl_abort_notification_waits
This is not needed since notif_wait_lock is never accessed from IRQ. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
24172f39b0
commit
3595c003f9
|
@ -121,13 +121,12 @@ EXPORT_SYMBOL_GPL(iwl_notification_wait_notify);
|
||||||
|
|
||||||
void iwl_abort_notification_waits(struct iwl_notif_wait_data *notif_wait)
|
void iwl_abort_notification_waits(struct iwl_notif_wait_data *notif_wait)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
|
||||||
struct iwl_notification_wait *wait_entry;
|
struct iwl_notification_wait *wait_entry;
|
||||||
|
|
||||||
spin_lock_irqsave(¬if_wait->notif_wait_lock, flags);
|
spin_lock(¬if_wait->notif_wait_lock);
|
||||||
list_for_each_entry(wait_entry, ¬if_wait->notif_waits, list)
|
list_for_each_entry(wait_entry, ¬if_wait->notif_waits, list)
|
||||||
wait_entry->aborted = true;
|
wait_entry->aborted = true;
|
||||||
spin_unlock_irqrestore(¬if_wait->notif_wait_lock, flags);
|
spin_unlock(¬if_wait->notif_wait_lock);
|
||||||
|
|
||||||
wake_up_all(¬if_wait->notif_waitq);
|
wake_up_all(¬if_wait->notif_waitq);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue