mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
disp: rsc: update mode-1 threshold config to 1 hz
Update mode-1 threshold configuration to 1 hz to avoid selecting mode-2 if panel vsync is irregular. Change-Id: I9d48d088ac1e84f9d0e422d006458527e1944ed8 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org> Signed-off-by: Mahadevan <quic_mahap@quicinc.com>
This commit is contained in:
parent
c714fc0871
commit
d538367ebd
1 changed files with 2 additions and 3 deletions
|
|
@ -368,9 +368,8 @@ static u32 sde_rsc_timer_calculate(struct sde_rsc_priv *rsc,
|
|||
rsc_time_slot_0_ns = div_u64(rsc_time_slot_0_ns, cxo_period_ns);
|
||||
rsc->timer_config.rsc_time_slot_0_ns = (u32) rsc_time_slot_0_ns;
|
||||
|
||||
/* time_slot_1 for mode1 latency */
|
||||
rsc_time_slot_1_ns = frame_time_ns;
|
||||
rsc_time_slot_1_ns = div_u64(rsc_time_slot_1_ns, cxo_period_ns);
|
||||
/* time_slot_1 for mode1 latency - 1 fps */
|
||||
rsc_time_slot_1_ns = div_u64(TICKS_IN_NANO_SECOND, cxo_period_ns);
|
||||
rsc->timer_config.rsc_time_slot_1_ns = (u32) rsc_time_slot_1_ns;
|
||||
|
||||
/* mode 2 is infinite */
|
||||
|
|
|
|||
Loading…
Reference in a new issue