From 14b018e251e989ac873cc42c79b8926b9d9cf48b Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Fri, 23 Aug 2013 13:43:58 +0200 Subject: remove support for kernel 2.6.24 By requiring 2.6.25 we can get rid of quite a lot of backport work. 2.6.25 was released more than five years ago (April 2011) and wasn't a long-term kernel either, so there's little point in supporting it now. Signed-off-by: Johannes Berg Signed-off-by: Luis R. Rodriguez --- backport/backport-include/linux/pm_qos.h | 41 -------------------------------- 1 file changed, 41 deletions(-) (limited to 'backport/backport-include/linux/pm_qos.h') diff --git a/backport/backport-include/linux/pm_qos.h b/backport/backport-include/linux/pm_qos.h index 96a600fc..26e23a57 100644 --- a/backport/backport-include/linux/pm_qos.h +++ b/backport/backport-include/linux/pm_qos.h @@ -3,47 +3,6 @@ #include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) -/* - * Kernels >= 2.6.25 have pm-qos and its initialized as part of - * the bootup process - */ -static inline int backport_pm_qos_power_init(void) -{ - return 0; -} - -static inline int backport_pm_qos_power_deinit(void) -{ - return 0; -} -#else -/* - * 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 backport_pm_qos_power_init() - * defned below is used by the compat module to initialize pm-qos. - */ -int backport_pm_qos_power_init(void); -int backport_pm_qos_power_deinit(void); -#endif - #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)) #include_next #else -- cgit v1.2.3