]> git.baikalelectronics.ru Git - kernel.git/commit
dma-debug: introduce dma_debug_disabled
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 10 Dec 2014 23:41:23 +0000 (15:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:02 +0000 (17:41 -0800)
commit59a9483cb22ed8b16e1b1ef39f0c4dcb034df771
treeb97bc43dac401cd4b3c746d6c08d883b969732ca
parentf1dbd7bbb615fec6541d812cf263e5c0f09e68df
dma-debug: introduce dma_debug_disabled

Add a helper function which returns whether the DMA debugging API is
disabled, right now we only check for global_disable, but in order to
accommodate early callers of the DMA-API, we will check for more
initialization flags in the next patch.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Horia Geanta <horia.geanta@freescale.com>
Cc: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/dma-debug.c