source: trunk/package/mac80211/patches/120-pm_qos_params.patch @ 22403

Last change on this file since 22403 was 22403, checked in by nbd, 6 years ago

mac80211: update to wireless-testing 2010-07-26 + pending patches - adds a change that might fix some calibration issues

File size: 2.0 KB
  • drivers/net/wireless/ipw2x00/ipw2100.c

    a b that only one external action is invoked 
    174174#define DRV_DESCRIPTION "Intel(R) PRO/Wireless 2100 Network Driver" 
    175175#define DRV_COPYRIGHT   "Copyright(c) 2003-2006 Intel Corporation" 
    176176 
     177#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) 
    177178static struct pm_qos_request_list *ipw2100_pm_qos_req; 
     179#endif 
    178180 
    179181/* Debugging stuff */ 
    180182#ifdef CONFIG_IPW2100_DEBUG 
    static int ipw2100_up(struct ipw2100_pri 
    17411743        /* the ipw2100 hardware really doesn't want power management delays 
    17421744         * longer than 175usec 
    17431745         */ 
     1746#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) 
    17441747        pm_qos_update_request(ipw2100_pm_qos_req, 175); 
     1748#else 
     1749        pm_qos_update_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100", 175); 
     1750#endif 
    17451751 
    17461752        /* If the interrupt is enabled, turn it off... */ 
    17471753        spin_lock_irqsave(&priv->low_lock, flags); 
    static void ipw2100_down(struct ipw2100_ 
    18891895        ipw2100_disable_interrupts(priv); 
    18901896        spin_unlock_irqrestore(&priv->low_lock, flags); 
    18911897 
     1898#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) 
    18921899        pm_qos_update_request(ipw2100_pm_qos_req, PM_QOS_DEFAULT_VALUE); 
     1900#else 
     1901        pm_qos_update_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100", 
     1902                        PM_QOS_DEFAULT_VALUE); 
     1903#endif 
    18931904 
    18941905        /* We have to signal any supplicant if we are disassociating */ 
    18951906        if (associated) 
    static int __init ipw2100_init(void) 
    66696680        if (ret) 
    66706681                goto out; 
    66716682 
     6683#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) 
    66726684        ipw2100_pm_qos_req = pm_qos_add_request(PM_QOS_CPU_DMA_LATENCY, 
     6685#else 
     6686        pm_qos_add_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100", 
     6687#endif 
    66736688                        PM_QOS_DEFAULT_VALUE); 
    66746689#ifdef CONFIG_IPW2100_DEBUG 
    66756690        ipw2100_debug_level = debug; 
    static void __exit ipw2100_exit(void) 
    66926707                           &driver_attr_debug_level); 
    66936708#endif 
    66946709        pci_unregister_driver(&ipw2100_pci_driver); 
     6710#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) 
    66956711        pm_qos_remove_request(ipw2100_pm_qos_req); 
     6712#else 
     6713        pm_qos_remove_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100"); 
     6714#endif 
    66966715} 
    66976716 
    66986717module_init(ipw2100_init); 
Note: See TracBrowser for help on using the repository browser.