qcacld-3.0: Correct featurization of PM QoS support for 5.4 Kernel

Currently PM QoS is only enabled for kernel version 4.19.0 and below but
is supported and needed in kernel version 4.19.72. So enable PM QoS if
kernel version is below 5.4.0.

Change-Id: I440abe1cf9737447faff250b1973f1e6e2fe378e
CRs-Fixed: 2603396
This commit is contained in:
Saket Jha 2020-01-16 13:35:02 -08:00 committed by nshrivas
parent 39784324f1
commit 45243809b9
2 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@
#endif
#if defined(CLD_PM_QOS) && \
(LINUX_VERSION_CODE <= KERNEL_VERSION(4, 19, 0))
(LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0))
#include <linux/pm_qos.h>
#endif
@ -1887,7 +1887,7 @@ struct hdd_context {
qdf_time_t runtime_resume_start_time_stamp;
qdf_time_t runtime_suspend_done_time_stamp;
#if defined(CLD_PM_QOS) && \
(LINUX_VERSION_CODE <= KERNEL_VERSION(4, 19, 0))
(LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0))
struct pm_qos_request pm_qos_req;
#endif
#ifdef WLAN_FEATURE_PKT_CAPTURE

View File

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