diff options
author | Don Fry <donald.h.fry@intel.com> | 2011-11-28 19:13:19 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-12-02 11:23:28 -0500 |
commit | dd5fe1046cb07d2a6665b6dbbfc6989b39ae063b (patch) | |
tree | 83d8f9c06d870847a6f817581416c915092a89f1 /drivers/net/wireless/iwlwifi/iwl-core.c | |
parent | 3d6acefc0a24bf90746c1f259e9d65d1ed7ea5e2 (diff) |
iwlwifi: move ucode notification from iwl_priv to iwl_shared
Move the notification structures for ucode operations from the
iwl_priv structure to the iwl_shared structure, with associated
code changes.
Signed-off-by: Don Fry <donald.h.fry@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index f9e9170e977a..b3205827ceb0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -836,19 +836,6 @@ void iwl_print_rx_config_cmd(struct iwl_priv *priv, | |||
836 | } | 836 | } |
837 | #endif | 837 | #endif |
838 | 838 | ||
839 | static void iwlagn_abort_notification_waits(struct iwl_priv *priv) | ||
840 | { | ||
841 | unsigned long flags; | ||
842 | struct iwl_notification_wait *wait_entry; | ||
843 | |||
844 | spin_lock_irqsave(&priv->notif_wait_lock, flags); | ||
845 | list_for_each_entry(wait_entry, &priv->notif_waits, list) | ||
846 | wait_entry->aborted = true; | ||
847 | spin_unlock_irqrestore(&priv->notif_wait_lock, flags); | ||
848 | |||
849 | wake_up_all(&priv->notif_waitq); | ||
850 | } | ||
851 | |||
852 | void iwlagn_fw_error(struct iwl_priv *priv, bool ondemand) | 839 | void iwlagn_fw_error(struct iwl_priv *priv, bool ondemand) |
853 | { | 840 | { |
854 | unsigned int reload_msec; | 841 | unsigned int reload_msec; |
@@ -860,7 +847,7 @@ void iwlagn_fw_error(struct iwl_priv *priv, bool ondemand) | |||
860 | /* Cancel currently queued command. */ | 847 | /* Cancel currently queued command. */ |
861 | clear_bit(STATUS_HCMD_ACTIVE, &priv->shrd->status); | 848 | clear_bit(STATUS_HCMD_ACTIVE, &priv->shrd->status); |
862 | 849 | ||
863 | iwlagn_abort_notification_waits(priv); | 850 | iwl_abort_notification_waits(priv->shrd); |
864 | 851 | ||
865 | /* Keep the restart process from trying to send host | 852 | /* Keep the restart process from trying to send host |
866 | * commands by clearing the ready bit */ | 853 | * commands by clearing the ready bit */ |