]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drivers: dma-coherent: Move spinlock in dma_alloc_from_coherent()
authorBastian Hecht <bhecht@de.adit-jv.com>
Wed, 28 Sep 2016 07:51:57 +0000 (08:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2016 15:53:16 +0000 (17:53 +0200)
commitdd01c75f1df311793de6ef217c72036552000c9a
tree0da39cc93ddfb308acd94a627663033a7f421bc2
parent9ca5d4fd08d1c560a46ff649221a891065039891
drivers: dma-coherent: Move spinlock in dma_alloc_from_coherent()

We don't need to hold the spinlock while zeroing the allocated memory.
In case we handle big buffers this is a severe issue as other CPUs might
be spinning half a second or longer.

Signed-off-by: Bastian Hecht <bhecht@de.adit-jv.com>
Signed-off-by: George G. Davis <george_davis@mentor.com>
Signed-off-by: Mark Craske <Mark_Craske@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/dma-coherent.c