aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ipw2100.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c
index 2ab107f45793..5bf9e00b070c 100644
--- a/drivers/net/wireless/ipw2100.c
+++ b/drivers/net/wireless/ipw2100.c
@@ -162,7 +162,7 @@ that only one external action is invoked at a time.
162#include <linux/firmware.h> 162#include <linux/firmware.h>
163#include <linux/acpi.h> 163#include <linux/acpi.h>
164#include <linux/ctype.h> 164#include <linux/ctype.h>
165#include <linux/latency.h> 165#include <linux/pm_qos_params.h>
166 166
167#include "ipw2100.h" 167#include "ipw2100.h"
168 168
@@ -1701,7 +1701,7 @@ static int ipw2100_up(struct ipw2100_priv *priv, int deferred)
1701 /* the ipw2100 hardware really doesn't want power management delays 1701 /* the ipw2100 hardware really doesn't want power management delays
1702 * longer than 175usec 1702 * longer than 175usec
1703 */ 1703 */
1704 modify_acceptable_latency("ipw2100", 175); 1704 pm_qos_update_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100", 175);
1705 1705
1706 /* If the interrupt is enabled, turn it off... */ 1706 /* If the interrupt is enabled, turn it off... */
1707 spin_lock_irqsave(&priv->low_lock, flags); 1707 spin_lock_irqsave(&priv->low_lock, flags);
@@ -1856,7 +1856,8 @@ static void ipw2100_down(struct ipw2100_priv *priv)
1856 ipw2100_disable_interrupts(priv); 1856 ipw2100_disable_interrupts(priv);
1857 spin_unlock_irqrestore(&priv->low_lock, flags); 1857 spin_unlock_irqrestore(&priv->low_lock, flags);
1858 1858
1859 modify_acceptable_latency("ipw2100", INFINITE_LATENCY); 1859 pm_qos_update_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100",
1860 PM_QOS_DEFAULT_VALUE);
1860 1861
1861 /* We have to signal any supplicant if we are disassociating */ 1862 /* We have to signal any supplicant if we are disassociating */
1862 if (associated) 1863 if (associated)
@@ -6554,7 +6555,8 @@ static int __init ipw2100_init(void)
6554 if (ret) 6555 if (ret)
6555 goto out; 6556 goto out;
6556 6557
6557 set_acceptable_latency("ipw2100", INFINITE_LATENCY); 6558 pm_qos_add_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100",
6559 PM_QOS_DEFAULT_VALUE);
6558#ifdef CONFIG_IPW2100_DEBUG 6560#ifdef CONFIG_IPW2100_DEBUG
6559 ipw2100_debug_level = debug; 6561 ipw2100_debug_level = debug;
6560 ret = driver_create_file(&ipw2100_pci_driver.driver, 6562 ret = driver_create_file(&ipw2100_pci_driver.driver,
@@ -6576,7 +6578,7 @@ static void __exit ipw2100_exit(void)
6576 &driver_attr_debug_level); 6578 &driver_attr_debug_level);
6577#endif 6579#endif
6578 pci_unregister_driver(&ipw2100_pci_driver); 6580 pci_unregister_driver(&ipw2100_pci_driver);
6579 remove_acceptable_latency("ipw2100"); 6581 pm_qos_remove_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100");
6580} 6582}
6581 6583
6582module_init(ipw2100_init); 6584module_init(ipw2100_init);