diff options
| author | 2016-06-10 21:48:07 -0400 | |
|---|---|---|
| committer | 2016-08-15 20:44:24 +0200 | |
| commit | 83011b6cbe7c597c73b31c41021dc71f78dcef7b (patch) | |
| tree | c3c2d8dae8278f2680c3c9a08d7f1a8d18b2bb71 /include/linux/debugobjects.h | |
| parent | staging: unisys: visorbus: removed unused periodic_test_workqueue (diff) | |
staging: unisys: visorinput: remove unnecessary locking
Locking in the _interrupt() function is NOT necessary so long as we ensure
that interrupts have been stopped whenever we need to pause or resume the
device, which we now do.
While a device is paused, we ensure that interrupts stay disabled, i.e.
that the _interrupt() function will NOT be called, yet remember the desired
state in devdata->interrupts_enabled if open() or close() are called are
called while the device is paused. Then when the device is resumed, we
restore the actual state of interrupts (i.e., whether _interrupt() is going
to be called or not) to the desired state in devdata->interrupts_enabled.
Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Acked-By: Neil Horman <nhorman@tuxdriver.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
