aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-tt.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-02-17 13:07:44 -0500
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2012-02-17 13:10:28 -0500
commit1ee158d83853a9f5c1465be56d56ff56e6698e92 (patch)
tree15893fd02e9ac0ae42649c8725f66670ed7ba2a7 /drivers/net/wireless/iwlwifi/iwl-agn-tt.c
parent2655e314c4b204966008689eaf3e87ba1f38d55c (diff)
iwlwifi: move workqueue to priv
In order to separate the different parts of the driver better, we are reducing the shared data. This moves the workqueue to "priv", and removes it from the transport. To do this, simply use schedule_work() in the transport. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-tt.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-tt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tt.c b/drivers/net/wireless/iwlwifi/iwl-agn-tt.c
index c728ed75584e..56d7c0e38163 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-tt.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-tt.c
@@ -568,7 +568,7 @@ void iwl_tt_enter_ct_kill(struct iwl_priv *priv)
568 return; 568 return;
569 569
570 IWL_DEBUG_TEMP(priv, "Queueing critical temperature enter.\n"); 570 IWL_DEBUG_TEMP(priv, "Queueing critical temperature enter.\n");
571 queue_work(priv->shrd->workqueue, &priv->ct_enter); 571 queue_work(priv->workqueue, &priv->ct_enter);
572} 572}
573 573
574void iwl_tt_exit_ct_kill(struct iwl_priv *priv) 574void iwl_tt_exit_ct_kill(struct iwl_priv *priv)
@@ -577,7 +577,7 @@ void iwl_tt_exit_ct_kill(struct iwl_priv *priv)
577 return; 577 return;
578 578
579 IWL_DEBUG_TEMP(priv, "Queueing critical temperature exit.\n"); 579 IWL_DEBUG_TEMP(priv, "Queueing critical temperature exit.\n");
580 queue_work(priv->shrd->workqueue, &priv->ct_exit); 580 queue_work(priv->workqueue, &priv->ct_exit);
581} 581}
582 582
583static void iwl_bg_tt_work(struct work_struct *work) 583static void iwl_bg_tt_work(struct work_struct *work)
@@ -600,7 +600,7 @@ void iwl_tt_handler(struct iwl_priv *priv)
600 return; 600 return;
601 601
602 IWL_DEBUG_TEMP(priv, "Queueing thermal throttling work.\n"); 602 IWL_DEBUG_TEMP(priv, "Queueing thermal throttling work.\n");
603 queue_work(priv->shrd->workqueue, &priv->tt_work); 603 queue_work(priv->workqueue, &priv->tt_work);
604} 604}
605 605
606/* Thermal throttling initialization 606/* Thermal throttling initialization