]> 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)
commitadcac7f2f76d8719cd672b90360d3ae2d7998ca4
tree47b4343fff33ee4169ca0f2387e47bee9d56eb03
parentf998b5dcfc39f03f2fbddbe6c1af949258fdec40
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