From: Jason Cooper Date: Thu, 24 Apr 2014 05:42:56 +0000 (+0000) Subject: Merge branch 'mvebu/irqchip' into mvebu/soc X-Git-Tag: next-20140428~79^2~2^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7d370027af5f642286a3ee3ad53d872293cc48f1;p=karo-tx-linux.git Merge branch 'mvebu/irqchip' into mvebu/soc --- 7d370027af5f642286a3ee3ad53d872293cc48f1 diff --cc arch/arm/mach-mvebu/platsmp.c index e01ae51bee56,e43727f391f7..32bf78e80c48 --- a/arch/arm/mach-mvebu/platsmp.c +++ b/arch/arm/mach-mvebu/platsmp.c @@@ -70,24 -70,11 +70,19 @@@ static void __init set_secondary_cpus_c } } - static void armada_xp_secondary_init(unsigned int cpu) - { - armada_xp_mpic_smp_cpu_init(); - } - static int armada_xp_boot_secondary(unsigned int cpu, struct task_struct *idle) { + int ret, hw_cpu; + pr_info("Booting CPU %d\n", cpu); - armada_xp_boot_cpu(cpu, armada_xp_secondary_startup); + hw_cpu = cpu_logical_map(cpu); + mvebu_pmsu_set_cpu_boot_addr(hw_cpu, armada_xp_secondary_startup); + ret = mvebu_cpu_reset_deassert(hw_cpu); + if (ret) { + pr_warn("unable to boot CPU: %d\n", ret); + return ret; + } return 0; }