mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacmn: Dump scheduler thread stack for watchdog bite
In the event of a scheduler thread watchdog bite, dump the scheduler
thread stack trace to aid in debugging.
Change-Id: I222556c7cb01985abe20b04a9383fc6c6d0724fc
CRs-Fixed: 2091875
This commit is contained in:
parent
ae850c6d62
commit
7b32946958
1 changed files with 3 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ static QDF_STATUS scheduler_close(struct scheduler_ctx *sched_ctx)
|
|||
|
||||
/* Wait for scheduler thread to exit */
|
||||
qdf_wait_single_event(&sched_ctx->sch_shutdown, 0);
|
||||
sched_ctx->sch_thread = 0;
|
||||
sched_ctx->sch_thread = NULL;
|
||||
|
||||
/* Clean up message queues of MC thread */
|
||||
scheduler_flush_mqs(sched_ctx);
|
||||
|
|
@ -102,6 +102,8 @@ static void scheduler_watchdog_timeout(void *arg)
|
|||
struct scheduler_ctx *sched = arg;
|
||||
|
||||
scheduler_watchdog_notify(sched);
|
||||
if (sched->sch_thread)
|
||||
qdf_print_thread_trace(sched->sch_thread);
|
||||
|
||||
/* avoid crashing during shutdown */
|
||||
if (qdf_test_bit(MC_SHUTDOWN_EVENT_MASK, &sched->sch_event_flag))
|
||||
|
|
|
|||
Loading…
Reference in a new issue