aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/init.c
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mshajakhan@atheros.com>2010-12-14 13:18:28 +0530
committerJohn W. Linville <linville@tuxdriver.com>2010-12-15 17:03:54 -0500
commit4dc3530df7c0428b41c00399a7ee8c929406d181 (patch)
tree43a6c79e6984ce0479746e4a1a847f4a1b493538 /drivers/net/wireless/ath/ath9k/init.c
parent17b3c17ecde36db5db7760a2802990b3129a4d65 (diff)
downloadkernel_samsung_smdk4412-4dc3530df7c0428b41c00399a7ee8c929406d181.zip
kernel_samsung_smdk4412-4dc3530df7c0428b41c00399a7ee8c929406d181.tar.gz
kernel_samsung_smdk4412-4dc3530df7c0428b41c00399a7ee8c929406d181.tar.bz2
ath9k: Make PM-QOS value as user configurable
This patch allows the pm-qos value to be user configurable by making it as a module parameter.This will help our customers to configure the pm-qos value according to the effect in throughput due to the DMA latency problem which was observed in Intel Pinetrail platforms. The tested value of '55' will be filled as the default pm-qos-value incase the user does not specifies pm-qos value as a module parameter. example usage: sudo modprobe ath9k pmqos=65 Cc: Senthilkumar Balasubramanian <Senthilkumar.Balasubramanian@Atheros.com> Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index b2983ce..1238795 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -41,6 +41,10 @@ static int ath9k_btcoex_enable;
module_param_named(btcoex_enable, ath9k_btcoex_enable, int, 0444);
MODULE_PARM_DESC(btcoex_enable, "Enable wifi-BT coexistence");
+int ath9k_pm_qos_value = ATH9K_PM_QOS_DEFAULT_VALUE;
+module_param_named(pmqos, ath9k_pm_qos_value, int, S_IRUSR | S_IRGRP | S_IROTH);
+MODULE_PARM_DESC(pmqos, "User specified PM-QOS value");
+
/* We use the hw_value as an index into our private channel structure */
#define CHAN2G(_freq, _idx) { \