Explorar el Código

qcacmn: Move to Use wakeup_source_register from 4.19 kernels

As part of new kernels it is suggested to move to the upstreamed
wakelock apis for registration and unregistration.

Change-Id: Icc2bdeb6201fc65d351f75c5b49968fd23e2bba8
CRs-Fixed: 2639311
Arun Kumar Khandavalli hace 5 años
padre
commit
48063f9d05
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      qdf/linux/src/qdf_lock.c

+ 2 - 2
qdf/linux/src/qdf_lock.c

@@ -265,7 +265,7 @@ qdf_export_symbol(qdf_wake_lock_name);
  * QDF status success: if wake lock is initialized
  * QDF status failure: if wake lock was not initialized
  */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 80))
 QDF_STATUS qdf_wake_lock_create(qdf_wake_lock_t *lock, const char *name)
 {
 	qdf_mem_zero(lock, sizeof(*lock));
@@ -388,7 +388,7 @@ qdf_export_symbol(qdf_wake_lock_release);
  * QDF status success: if wake lock is acquired
  * QDF status failure: if wake lock was not acquired
  */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 80))
 QDF_STATUS qdf_wake_lock_destroy(qdf_wake_lock_t *lock)
 {
 	wakeup_source_unregister(lock->priv);