qcacld-3.0: Featurize PM QoS support for 4.19 Kernel

Due to upgrade to kernel 5.4, struct pm_qos_request fields have changed,
causing compilation issues. Featurizing PM QoS so it is only enabled
for 4.19 kernel.

Change-Id: Ide2a3eb4b2bc970c6469efe8621bec55e50ecbd8
CRs-Fixed: 2580165
This commit is contained in:
Saket Jha 2019-12-04 17:56:01 -08:00 • committed by nshrivas
commit 53c00cb98a
2 changed files with 9 additions and 5 deletions

View file

@ -47,9 +47,6 @@
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <net/cfg80211.h>
#ifdef CLD_PM_QOS
#include <linux/pm_qos.h>
#endif
#include <linux/ieee80211.h>
#include <qdf_delayed_work.h>
#include <qdf_list.h>
@ -112,6 +109,11 @@
#include "qdf_periodic_work.h"
#endif
#if defined(CLD_PM_QOS) && \
(LINUX_VERSION_CODE <= KERNEL_VERSION(4, 19, 0))
#include <linux/pm_qos.h>
#endif
#include "wlan_hdd_sta_info.h"
/*
@ -1869,7 +1871,8 @@ struct hdd_context {
qdf_time_t runtime_resume_start_time_stamp;
qdf_time_t runtime_suspend_done_time_stamp;
#ifdef CLD_PM_QOS
#if defined(CLD_PM_QOS) && \
(LINUX_VERSION_CODE <= KERNEL_VERSION(4, 19, 0))
struct pm_qos_request pm_qos_req;
#endif
};

View file

@ -8252,7 +8252,8 @@ static void hdd_clear_rps_cpu_mask(struct hdd_context *hdd_ctx)
hdd_send_rps_disable_ind(adapter);
}
#ifdef CLD_PM_QOS
#if defined(CLD_PM_QOS) && \
(LINUX_VERSION_CODE <= KERNEL_VERSION(4, 19, 0))
#define PLD_REMOVE_PM_QOS(x)
#define PLD_REQUEST_PM_QOS(x, y)
/**