qcacmn: pkt_log: Use qdf_spin_lock APIs debug infrastructure

Use QDF spin_lock APIs so that we can make use the debug infra.
This will help to identify catch issue related to unbalanced lock
operations or unexpectedely long locks.

Change-Id: I318bcb90340d98813f19862fda14e6ada30bbed6
CRs-Fixed: 2349308
This commit is contained in:
Manjunathappa Prakash
2018-11-13 16:22:25 -08:00
committed by nshrivas
parent f8ccc18f6a
commit c6e684b128
4 changed files with 33 additions and 32 deletions

View File

@@ -33,10 +33,11 @@
#define NO_REG_FUNCS 4
/* Locking interface for pktlog */
#define PKTLOG_LOCK_INIT(_pl_info) spin_lock_init(&(_pl_info)->log_lock)
#define PKTLOG_LOCK_DESTROY(_pl_info)
#define PKTLOG_LOCK(_pl_info) spin_lock(&(_pl_info)->log_lock)
#define PKTLOG_UNLOCK(_pl_info) spin_unlock(&(_pl_info)->log_lock)
#define PKTLOG_LOCK_INIT(_pl_info) qdf_spinlock_create(&(_pl_info)->log_lock)
#define PKTLOG_LOCK_DESTROY(_pl_info) \
qdf_spinlock_destroy(&(_pl_info)->log_lock)
#define PKTLOG_LOCK(_pl_info) qdf_spin_lock_bh(&(_pl_info)->log_lock)
#define PKTLOG_UNLOCK(_pl_info) qdf_spin_unlock_bh(&(_pl_info)->log_lock)
#define PKTLOG_MODE_SYSTEM 1
#define PKTLOG_MODE_ADAPTER 2