]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: gpio-ir-tx: improve precision of transmitted signal due to scheduling
authorSean Young <sean@mess.org>
Sat, 2 May 2020 12:50:52 +0000 (14:50 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 May 2020 15:29:11 +0000 (17:29 +0200)
commitea8912b788f8144e7d32ee61e5ccba45424bef83
tree15dc29c3367b99c5f724e452f9aa8085134b4333
parent0e06a071dce75434d4b95036d0958ae8c11b9a29
media: gpio-ir-tx: improve precision of transmitted signal due to scheduling

usleep_range() may take longer than the max argument due to scheduling,
especially under load. This is causing random errors in the transmitted
IR. Remove the usleep_range() in favour of busy-looping with udelay().

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/gpio-ir-tx.c