OSDN Git Service

counter: 104-quad-8: Replace mutex with spinlock
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Wed, 29 Sep 2021 03:16:05 +0000 (12:16 +0900)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 17 Oct 2021 09:55:43 +0000 (10:55 +0100)
commit09db4678bfbb429df259e1ce43854a0e2720c355
tree9fa66764e4c4c71821f742ad3008c72d753440fb
parentfeff17a550c7120009d8ba9431426135661a731b
counter: 104-quad-8: Replace mutex with spinlock

This patch replaces the mutex I/O lock with a spinlock. This is in
preparation for a subsequent patch adding IRQ support for 104-QUAD-8
devices; we can't sleep in an interrupt context, so we'll need to use a
spinlock instead.

Acked-by: Syed Nayyar Waris <syednwaris@gmail.com>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Link: https://lore.kernel.org/r/3f74491dec66de10d062978bcb7b9c2b3bdea86c.1632884256.git.vilhelm.gray@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/counter/104-quad-8.c