]> git.openfabrics.org - ~emulex/compat.git/commitdiff
compat: use kernel pm_qos_params.h
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 6 Jun 2010 09:12:27 +0000 (11:12 +0200)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Sun, 6 Jun 2010 09:19:49 +0000 (02:19 -0700)
Do not use pm_qos_params.h from compat-wireless if the kernel also
ships this file. In kernel 2.6.35 pm_qos_params.h changed and the in
kernel header file is needed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
include/linux/pm_qos_params.h

index 091c13c742f0e82e77163cbbf7fa37777acae0cc..e1f083c4e858d486349e1cceef9ddd802f05907b 100644 (file)
@@ -1,3 +1,8 @@
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25))
+#include_next <linux/pm_qos_params.h>
+#else
 /* interface for the pm_qos_power infrastructure of the linux kernel.
  *
  * Mark Gross <mgross@linux.intel.com>
@@ -23,4 +28,5 @@ int pm_qos_requirement(int qos);
 
 int pm_qos_add_notifier(int qos, struct notifier_block *notifier);
 int pm_qos_remove_notifier(int qos, struct notifier_block *notifier);
+#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) */