]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ARM: mvebu: prepare set_cpu_coherent() for future extension
authorNadav Haklai <nadavh@marvell.com>
Wed, 8 Jul 2015 15:02:30 +0000 (17:02 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Sat, 25 Jul 2015 15:16:41 +0000 (17:16 +0200)
commit01049a5deb1d6b9fc3f2df512af09fddd0db6730
treee6d748910efc49e7cac8f13b65d9f77159ba8dc7
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
ARM: mvebu: prepare set_cpu_coherent() for future extension

This patch prepares the set_cpu_coherent() function in coherency.c to
be extended to support other SoCs than Armada XP. It will be needed on
Armada 38x to re-enable the coherency after exiting from suspend to
RAM.

This preparation simply moves the function further down in coherency.c
so that it can use coherency_type(), and uses that function to only do
the Armada XP specific work if we are on Armada XP.

Signed-off-by: Nadav Haklai <nadavh@marvell.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/mach-mvebu/coherency.c