qcacmn: Remove CONFIG_MCL in wlan_flush_host_logs_for_fatal

This is to remove CONFIG_MCL in wlan_flush_host_logs_for_fatal.
And move condition cds_is_log_report_in_progress to qcacld code.

Change-Id: Ie231e966229789bcd8fa69aef1bc20e9b07a88ae
CRs-Fixed: 2484897
This commit is contained in:
Jingxiang Ge
2019-07-05 17:10:52 +08:00
committed by nshrivas
parent e575abcaa6
commit 4cbb2ada5b

View File

@@ -1126,20 +1126,14 @@ void wlan_flush_host_logs_for_fatal(void)
{ {
unsigned long flags; unsigned long flags;
#ifdef CONFIG_MCL if (gwlan_logging.flush_timer_period == 0)
if (cds_is_log_report_in_progress()) { pr_info("%s:flush all host logs Setting HOST_LOG_POST_MASK\n",
#endif __func__);
if (gwlan_logging.flush_timer_period == 0) spin_lock_irqsave(&gwlan_logging.spin_lock, flags);
pr_info("%s:flush all host logs Setting HOST_LOG_POST_MASK\n", wlan_queue_logmsg_for_app();
__func__); spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags);
spin_lock_irqsave(&gwlan_logging.spin_lock, flags); set_bit(HOST_LOG_DRIVER_MSG, &gwlan_logging.eventFlag);
wlan_queue_logmsg_for_app(); wake_up_interruptible(&gwlan_logging.wait_queue);
spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags);
set_bit(HOST_LOG_DRIVER_MSG, &gwlan_logging.eventFlag);
wake_up_interruptible(&gwlan_logging.wait_queue);
#ifdef CONFIG_MCL
}
#endif
} }
#ifdef FEATURE_PKTLOG #ifdef FEATURE_PKTLOG