aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/garp.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2011-04-15 06:33:35 -0400
committerVinod Koul <vinod.koul@intel.com>2011-05-13 10:10:07 -0400
commit69cea5a00d3135677939fce1fefe54ed522055a0 (patch)
tree2fa4752e87447f9d03828e0d11e04e37f41f0380 /include/net/garp.h
parent69dc14b51c1aad9d82afd8f96bf4e4835089bffc (diff)
dmaengine/dw_dmac: Replace spin_lock* with irqsave variants and enable submission from callback
dmaengine routines can be called from interrupt context and with interrupts disabled. Whereas spin_unlock_bh can't be called from such contexts. So this patch converts all spin_*_bh routines to irqsave variants. Also, spin_lock() used in tasklet is converted to irqsave variants, as tasklet can be interrupted, and dma requests from such interruptions may also call spin_lock. Now, submission from callbacks are permitted as per dmaengine framework. So we shouldn't hold any locks while calling callbacks. As locks were taken by parent routines, so releasing them before calling callbacks doesn't look clean enough. So, locks are taken inside all routine now, whereever they are required. And dwc_descriptor_complete is always called without taking locks. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/net/garp.h')
0 files changed, 0 insertions, 0 deletions