]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: comedi: amplc_dio200: Protect counter subdevice with spinlock
authorIan Abbott <abbotti@mev.co.uk>
Wed, 19 May 2010 15:59:40 +0000 (16:59 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:38:53 +0000 (13:38 -0700)
commit56ae41a5e0ded165f702ec3dfd19566d4f16148d
treef23288b2f1900fa34950381a2c63ab11f42e4391
parentfb94d638d2aa0bf1c0c3bae9a0acb87f35f59ba0
Staging: comedi: amplc_dio200: Protect counter subdevice with spinlock

The internal state of an 82C54 counter timer chip will get messed up if
several threads read, write, configure, or check the status of the chip
simultaneously.  Protect the register access sequences with a spin lock.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/amplc_dio200.c