浏览代码

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 5 年之前
父节点
当前提交
73749d2d18
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dp/wifi3.0/dp_main.c

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