summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adcxx.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2016-12-31 19:56:26 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2017-02-07 16:56:22 +1100
commitac39452e942af6a212e8f89e8a36b71354323845 (patch)
tree8627e90440f489cdcb0ce13449baf8f44edf3002 /drivers/hwmon/adcxx.c
parenta64662432200f8af6f67cd3664885a323f6a2f2d (diff)
downloadop-kernel-dev-ac39452e942af6a212e8f89e8a36b71354323845.zip
op-kernel-dev-ac39452e942af6a212e8f89e8a36b71354323845.tar.gz
via-cuda: Use spinlock_irq_save/restore instead of enable/disable_irq
The cuda_start() function uses spinlock_irq_save/restore for mutual exclusion. Let's have cuda_poll() do the same when polling the VIA interrupt. The benefit to disabling local irqs when the interrupt is being polled is that the interrupt handler now has the same timing properties regardless of whether it is invoked normally or from cuda_poll(). This driver was written back when local irqs remained enabled during execution of interrupt handlers and cuda_poll() was probably trying to achieve the same effect by use of enable/disable_irq. Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/hwmon/adcxx.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud