]> git.baikalelectronics.ru Git - kernel.git/commit
staging: dgnc: replace usleep_range with udelay
authorAishwarya Pant <aishpant@gmail.com>
Wed, 1 Mar 2017 12:36:30 +0000 (18:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Mar 2017 06:37:01 +0000 (07:37 +0100)
commit7b00becc58a0c574670b360a6057e0116a9a0ca1
treeec1183d64ba3608731a50731e98ef84510716de3
parent117007b8e1fe58ac94a9b12117c58cd9e1365e88
staging: dgnc: replace usleep_range with udelay

udelay is impelmented using a busy-wait loop and consumes CPU cycles
while usleep_range is implemented using interrupts.cls_flush_uart_write()
is called after a channel lock is acquired i.e. an atomic context.
Hence delay in this method should use udelay instead of usleep_range.

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_cls.c