ARM: shmobile: smp: Add function to prioritize DT SMP
authorMagnus Damm <damm+renesas@opensource.se>
Tue, 28 Jun 2016 14:10:37 +0000 (16:10 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 29 Jun 2016 12:43:11 +0000 (14:43 +0200)
commitc21af444eace56619e33df0b1fc67ec2e33481ac
tree0e16593e129fac8e83be6e37e4858f99c0083f53
parent5f3bca0db8ac01a73622361f6062939638bf4730
ARM: shmobile: smp: Add function to prioritize DT SMP

Add a function to check if other DT based method is available, and
if so return false to not hook up smp_ops from the machine vector.

This results in that DT-based SMP support has priority over older
C-based smp_ops code, and in case DT-based SMP support code does not
exist in the DTB then the old smp_ops code will still work as-is.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/common.h
arch/arm/mach-shmobile/platsmp.c