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
这个提交包含在:
Rakesh Pillai
2020-04-08 20:36:43 +05:30
提交者 nshrivas
父节点 c6d99aa14b
当前提交 73749d2d18

查看文件

@@ -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;
}
/**