]> git.ipfire.org Git - people/arne_f/kernel.git/commit
udlfb: set optimal write delay
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 25 Jul 2018 13:41:55 +0000 (15:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Sep 2018 08:32:40 +0000 (10:32 +0200)
commitaf0890aa45651a4ae37afefd29e2a0fa74c62f23
tree1feb6e2ca8756a91a7994745a5f371e475ce9e40
parent76aab4b1d8044f3b1f1dc0e6f72760dc71b00f23
udlfb: set optimal write delay

commit bb24153a3f13dd0dbc1f8055ad97fe346d598f66 upstream.

The default delay 5 jiffies is too much when the kernel is compiled with
HZ=100 - it results in jumpy cursor in Xwindow.

In order to find out the optimal delay, I benchmarked the driver on
1280x720x30fps video. I found out that with HZ=1000, 10ms is acceptable,
but with HZ=250 or HZ=300, we need 4ms, so that the video is played
without any frame skips.

This patch changes the delay to this value.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/video/udlfb.h