]> git.baikalelectronics.ru Git - kernel.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)
commit5a57222a532e5afd5b8614423ad6b5a222937e43
tree15dc29c3367b99c5f724e452f9aa8085134b4333
parentc6eb98f014c2d99fade1bd7db9160aa66fe4c999
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