]> git.openfabrics.org - ~emulex/tmp/compat/.git/commitdiff
Move pm-qos backport comments to 2.6.25 compat header
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 12 Jan 2010 01:13:31 +0000 (17:13 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 12 Jan 2010 01:13:31 +0000 (17:13 -0800)
We'll be synching the pm-qos implementation to match upstream
pm-qos on linux-next.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/pm_qos_params.c
include/linux/compat-2.6.25.h

index da93e957b8fe775197fe1a98d51ba6aa277fec9a..5ce3d0b16374be4875a24f48427cea06998685c3 100644 (file)
@@ -5,24 +5,6 @@
 
 #include <linux/miscdevice.h>
 
-/*
- * Backport work for QoS dependencies (kernel/pm_qos_params.c)
- * pm-qos stuff written by mark gross mgross@linux.intel.com.
- *
- * ipw2100 now makes use of
- * pm_qos_add_requirement(),
- * pm_qos_update_requirement() and
- * pm_qos_remove_requirement() from it
- *
- * mac80211 uses the network latency to determine if to enable or not
- * dynamic PS. mac80211 also and registers a notifier for when
- * the latency changes. Since older kernels do no thave pm-qos stuff
- * we just implement it completley here and register it upon cfg80211
- * init. I haven't tested ipw2100 on 2.6.24 though.
- *
- * This is copied from the kernel written by mark gross mgross@linux.intel.com
- */
-
 /*
  * locking rule: all changes to target_value or requirements or notifiers lists
  * or pm_qos_object list and pm_qos_objects need to happen with pm_qos_lock
index a4d5c90849fc8bd33c646e9ceebc6bb60c3f39fe..c188f369aafc2473c2e33ae7eecc141642dc73f7 100644 (file)
 #include <asm-generic/bug.h>
 #include <linux/pm_qos_params.h>
 
+/*
+ * Backport work for QoS dependencies (kernel/pm_qos_params.c)
+ * pm-qos stuff written by mark gross mgross@linux.intel.com.
+ *
+ * ipw2100 now makes use of:
+ *
+ * pm_qos_add_requirement(),
+ * pm_qos_update_requirement() and
+ * pm_qos_remove_requirement() from it
+ *
+ * mac80211 uses the network latency to determine if to enable or not
+ * dynamic PS. mac80211 also and registers a notifier for when
+ * the latency changes. Since older kernels do no thave pm-qos stuff
+ * we just implement it completley here and register it upon cfg80211
+ * init. I haven't tested ipw2100 on 2.6.24 though.
+ *
+ * This pm-qos implementation is copied verbatim from the kernel
+ * written by mark gross mgross@linux.intel.com. You don't have
+ * to do anythinig to use pm-qos except use the same exported
+ * routines as used in newer kernels. The compat_pm_qos_power_init()
+ * defned below is used by the compat module to initialize pm-qos.
+ */
 int compat_pm_qos_power_init(void);
 
 /*