projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aa9dbd
)
sandbox: Slow down the LCD sync rate
author
Simon Glass
<sjg@chromium.org>
Mon, 28 Feb 2022 22:13:48 +0000
(15:13 -0700)
committer
Simon Glass
<sjg@chromium.org>
Sat, 19 Mar 2022 01:24:24 +0000
(19:24 -0600)
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>
drivers/video/video-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/video/video-uclass.c
b/drivers/video/video-uclass.c
index
7d499bc
..
5215114
100644
(file)
--- 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) > 10
0
) {
sandbox_sdl_sync(priv->fb);
last_sync = get_timer(0);
}