]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7908/1: mm: Fix the arm_dma_limit calculation
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Mon, 2 Dec 2013 19:29:12 +0000 (20:29 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 9 Dec 2013 23:24:28 +0000 (23:24 +0000)
commit4ac2e5ac389f909daebdbcb468c2d33905444947
tree47b4343fff33ee4169ca0f2387e47bee9d56eb03
parent80872e30b072a8683bfed09f6b7bc109fb79634f
ARM: 7908/1: mm: Fix the arm_dma_limit calculation

Current code is using PHYS_OFFSET to calculate the arm_dma_limit which
will lead to wrong calculations in cases where PHYS_OFFSET is updated
runtime.

So fix the code by using __pv_phys_offset instead of PHYS_OFFSET.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/init.c