mvebu soc changes for v3.12
- mvebu - cleanup redundant code -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAABAgAGBQJSC9mvAAoJEAi3KVZQDZAeQlsH/jNKcW6zOYCQkPJQL7rqlhcY P5xftA4N1fB10DyNtkvyxnGykQ5c/04tMnjCv9pz4FbvdcygB5NY4aJibugSVCL3 5vSEXDjJU3Jk3IWL8rWy2eggGtqMuy9NiliHErM45VBmXGoqzL1eLu6ThpqfPAEr GNwnGvvI5fGXR/vHqo5HiRSmFVcLhvrzHSgoBclahqh6edaQ/0RxLqOC44BwaH7b RoNoxt6TpFg+8sb/p8jfpLKQD9CTFPb4q66KQhVq0Fqr01yw4Jr0jE+QSNp8d2BM jE1eN62ov+5C+bcfMPmhMgroxUtXVv/LEMrGQjwulrjLBwif3OYHOcgSnEnbAQ4= =OgcY -----END PGP SIGNATURE----- Merge tag 'soc-3.12' of git://git.infradead.org/linux-mvebu into next/cleanup From Jason Cooper: mvebu soc changes for v3.12 - mvebu - cleanup redundant code * tag 'soc-3.12' of git://git.infradead.org/linux-mvebu: ARM: mach-mvebu: remove redundant DT parsing and validation Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
commit
fea67d3dfd
|
@ -87,28 +87,11 @@ static int armada_xp_boot_secondary(unsigned int cpu, struct task_struct *idle)
|
|||
|
||||
static void __init armada_xp_smp_init_cpus(void)
|
||||
{
|
||||
struct device_node *np;
|
||||
unsigned int i, ncores;
|
||||
unsigned int ncores = num_possible_cpus();
|
||||
|
||||
np = of_find_node_by_name(NULL, "cpus");
|
||||
if (!np)
|
||||
panic("No 'cpus' node found\n");
|
||||
|
||||
ncores = of_get_child_count(np);
|
||||
if (ncores == 0 || ncores > ARMADA_XP_MAX_CPUS)
|
||||
panic("Invalid number of CPUs in DT\n");
|
||||
|
||||
/* Limit possible CPUs to defconfig */
|
||||
if (ncores > nr_cpu_ids) {
|
||||
pr_warn("SMP: %d CPUs physically present. Only %d configured.",
|
||||
ncores, nr_cpu_ids);
|
||||
pr_warn("Clipping CPU count to %d\n", nr_cpu_ids);
|
||||
ncores = nr_cpu_ids;
|
||||
}
|
||||
|
||||
for (i = 0; i < ncores; i++)
|
||||
set_cpu_possible(i, true);
|
||||
|
||||
set_smp_cross_call(armada_mpic_send_doorbell);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue