]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: mvebu: remove the address parameter for ll_set_cpu_coherent
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Mon, 14 Apr 2014 15:10:05 +0000 (17:10 +0200)
committerJason Cooper <jason@lakedaemon.net>
Fri, 25 Apr 2014 23:40:47 +0000 (23:40 +0000)
commitca744e10458db7acca94d4338a53868fe4586987
treec7f6c5872f40659acb67597adda501571fa504c5
parentd8a9e4bc0359aa7c84ddbb8c2d2c97a36c6e554f
ARM: mvebu: remove the address parameter for ll_set_cpu_coherent

In order to be able to deal with the MMU enabled and the MMU disabled
cases, the base address of the coherency registers was passed to the
function. The address by itself was not interesting as it can't change
for a given SoC, the only thing we need is to have a distinction
between the physical or the virtual address.

This patch add a check of the MMU bit to choose the accurate address,
then the calling function doesn't have to pass this information.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Link: https://lkml.kernel.org/r/1397488214-20685-3-git-send-email-gregory.clement@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/coherency.c
arch/arm/mach-mvebu/coherency_ll.S
arch/arm/mach-mvebu/headsmp.S