فهرست منبع

qcacmn: Ignore sched watchdog timeout incase of recovery

For some targets, whenever the recovery is triggered in the scheduler
thread context, in the same context the firmware dump collection
could also happen and can more time than the watchdog timeout for
the same.

So check and ignore watchdog timeout when the recovery is already
inprogress.

Change-Id: I0e74e73139a83c6361407fe2eef8d6d0cf2a5d8c
CRs-Fixed: 2718984
Arun Kumar Khandavalli 5 سال پیش
والد
کامیت
6d768494e5
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      scheduler/src/scheduler_api.c

+ 6 - 0
scheduler/src/scheduler_api.c

@@ -20,6 +20,7 @@
 #include <scheduler_core.h>
 #include <qdf_atomic.h>
 #include <qdf_module.h>
+#include <qdf_platform.h>
 
 QDF_STATUS scheduler_disable(void)
 {
@@ -64,6 +65,11 @@ static void scheduler_watchdog_timeout(void *arg)
 {
 	struct scheduler_ctx *sched = arg;
 
+	if (qdf_is_recovering()) {
+		sched_debug("Recovery is in progress ignore timeout");
+		return;
+	}
+
 	scheduler_watchdog_notify(sched);
 	if (sched->sch_thread)
 		qdf_print_thread_trace(sched->sch_thread);