]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arm: move arm_dma_limit to setup_dma_zone
authorVladimir Murzin <murzin.v@gmail.com>
Sat, 17 May 2014 13:19:33 +0000 (23:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 May 2014 07:35:07 +0000 (17:35 +1000)
commitbb56e3f0e2490c7f84ac2c8576b617209bbaf664
tree84879298fc6e7710f43156e9a4588ac629f9482c
parent9bd00ffd7cf2ebfa52b0063ec18afd5a9bec5af3
arm: move arm_dma_limit to setup_dma_zone

Since 4dcfa600 ("ARM: DMA-API: better handing of DMA masks for coherent
allocations") arm_dma_limit_pfn has almost substituted the arm_dma_limit.
The remaining user is dma_contiguous_reserve().  It is also referenced in
setup_dma_zone() to calculate arm_dma_limit_pfn.

Kill the global arm_dma_limit and equip setup_zone_dma with the local one.

Signed-off-by: Vladimir Murzin <murzin.v@gmail.com>
Reported-by: Vassili Karpov <av1474@comtv.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/arm/mm/init.c
arch/arm/mm/mm.h