From 73749d2d188d9e480daf656ad623c70271364d34 Mon Sep 17 00:00:00 2001 From: Rakesh Pillai Date: Wed, 8 Apr 2020 20:36:43 +0530 Subject: [PATCH] qcacmn: Fix the yield status for timer yield check The dp_should_timer_irq_yield should return the status DP_TIMER_NO_YIELD when no yield condition has been met. Currently its returning the status DP_TIMER_TIME_EXHAUST which causes the timer to yield before the expected time. Fix the return status from dp_should_timer_irq_yield Change-Id: Ia57aae635789f34e79285c27f5312ea38e07df5c CRs-Fixed: 2659900 --- dp/wifi3.0/dp_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index d0447985b345..f11ed7aa9675 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -1550,7 +1550,7 @@ static enum timer_yield_status dp_should_timer_irq_yield(struct dp_soc *soc, uint32_t work_done, uint64_t start_time) { - uint32_t cur_time = qdf_get_log_timestamp(); + uint64_t cur_time = qdf_get_log_timestamp(); if (!work_done) return DP_TIMER_WORK_DONE; @@ -1558,7 +1558,7 @@ dp_should_timer_irq_yield(struct dp_soc *soc, uint32_t work_done, if (cur_time - start_time > DP_MAX_TIMER_EXEC_TIME_TICKS) return DP_TIMER_TIME_EXHAUST; - return DP_TIMER_TIME_EXHAUST; + return DP_TIMER_NO_YIELD; } /**