]> git.openfabrics.org - ~aditr/compat.git/commit
Backport pm-qos for kernels <= 2.6.24
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 11 Jan 2010 19:24:27 +0000 (11:24 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 11 Jan 2010 19:24:27 +0000 (11:24 -0800)
commitd9ac575676a8c26aef9577dca512cc7ab7076eb9
treedf1b2436cc4a251b903b7083390beb3a4569912b
parent0cc2fce3ad6c0ed3a852d107b0244121118fb26b
Backport pm-qos for kernels <= 2.6.24

pm-qos is used by mac80211 and ipw2100. mac80211 uses it for
the dynamic power save to see if to enable it or not upon
recalculation for dynamic ps. It takes the latency registered
to the kernel into account.

Since older kernels do not have pm-qos we simply initialize
pm-qos stuff durng the compat module probe treating pm-qos as if
it were a feature of the compat module. We carry the header file
include/linux/pm_qos_params.h as part of this package, external
kernel drivers just need to ensure they also make use of the
NOSTDINC_FLAGS flag as we do on the top level Makefile to be
able to benefit from a direct port and let external drivers
also inlcude include/linux/pm_qos_params.h as it if it were
in their older kernels.

Cc: Mark Gross <mgross@linux.intel.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat-2.6.25.c
compat/main.c
include/linux/compat-2.6.25.h
include/linux/pm_qos_params.h [new file with mode: 0644]