mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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
This commit is contained in:
parent
c6d99aa14b
commit
73749d2d18
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue