diff options
author | Sean Young <sean@mess.org> | 2020-08-13 11:08:49 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-08-28 14:06:36 +0200 |
commit | 1451b93223bbe3b4e9c91fca6b451d00667c5bf0 (patch) | |
tree | 06315fe98be8afb94797cdf14511086da86d2bbc /drivers/media/v4l2-core/v4l2-ioctl.c | |
parent | a2e2d73fa28136598e84db9d021091f1b98cbb1a (diff) |
media: gpio-ir-tx: spinlock is not needed to disable interrupts
During bit-banging the IR on a gpio pin, we cannot be scheduled or have
anything interrupt us, else the generated signal will be incorrect.
Therefore, we need to disable interrupts on the local cpu. This also
disables preemption.
local_irq_disable() does exactly what we need and does not require a
spinlock.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ioctl.c')
0 files changed, 0 insertions, 0 deletions