diff options
author | Sinan Kaya <okaya@codeaurora.org> | 2016-10-21 18:37:56 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-11-03 14:25:44 +0100 |
commit | bdcfddfd7481d7756edfeb30fc28b550f6c64812 (patch) | |
tree | 25799f85346a01ee8b106a7ae39008db67af6f63 /drivers/mfd/da9052-spi.c | |
parent | dmaengine: qcom_hidma: break completion processing on error (diff) | |
download | linux-bdcfddfd7481d7756edfeb30fc28b550f6c64812.tar.xz linux-bdcfddfd7481d7756edfeb30fc28b550f6c64812.zip |
dmaengine: qcom_hidma: make pending_tre_count atomic
Getting ready for the MSI interrupts. The pending_tre_count is used
in the interrupt handler to make sure all outstanding requests are
serviced.
The driver will allocate 11 MSI interrupts. Each MSI interrupt can be
assigned to a different CPU. Then, we have a race condition for common
variables as they share the same interrupt handler with a different
cause bit and they can potentially be executed in parallel. Making this
variable atomic so that it can be updated from multiple processor
contexts.
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/mfd/da9052-spi.c')
0 files changed, 0 insertions, 0 deletions