diff options
author | Simon Glass <sjg@chromium.org> | 2022-02-28 15:13:48 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-03-18 19:24:24 -0600 |
commit | 7c19e4cbfe5271bd6a3cf0bf14d10751b5798739 (patch) | |
tree | 5123dce2cbe4d7c1d1de1542989bed1db69a1c8b /drivers | |
parent | 7aa9dbd0abd6a223da41e3ad363f0ed28a6109ad (diff) | |
download | u-boot-7c19e4cbfe5271bd6a3cf0bf14d10751b5798739.tar.gz u-boot-7c19e4cbfe5271bd6a3cf0bf14d10751b5798739.tar.bz2 u-boot-7c19e4cbfe5271bd6a3cf0bf14d10751b5798739.zip |
sandbox: Slow down the LCD sync rate
There is seldom a need to refresh at 100Hz and it uses a lot of CPU.
Reduce the rate to 10Hz which seems to be adequate.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/video-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 7d499bcec5..5215114b2d 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -204,7 +204,7 @@ int video_sync(struct udevice *vid, bool force) struct video_priv *priv = dev_get_uclass_priv(vid); static ulong last_sync; - if (force || get_timer(last_sync) > 10) { + if (force || get_timer(last_sync) > 100) { sandbox_sdl_sync(priv->fb); last_sync = get_timer(0); } |