Merge branch 'kirkwood/cleanup' of git://git.infradead.org/users/jcooper/linux into...
[deliverable/linux.git] / arch / arm / mach-shmobile / platsmp.c
CommitLineData
1c51ed4f
MD
1/*
2 * SMP support for R-Mobile / SH-Mobile
3 *
4 * Copyright (C) 2010 Magnus Damm
c413521e 5 * Copyright (C) 2011 Paul Mundt
1c51ed4f
MD
6 *
7 * Based on vexpress, Copyright (C) 2002 ARM Ltd, All Rights Reserved
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 */
13#include <linux/init.h>
1c51ed4f 14#include <linux/smp.h>
0f7b332f 15#include <asm/hardware/gic.h>
1c51ed4f 16
a62580e5 17void __init shmobile_smp_init_cpus(unsigned int ncores)
1c51ed4f 18{
1c51ed4f
MD
19 unsigned int i;
20
a06f916b
RK
21 if (ncores > nr_cpu_ids) {
22 pr_warn("SMP: %u cores greater than maximum (%u), clipping\n",
23 ncores, nr_cpu_ids);
24 ncores = nr_cpu_ids;
25 }
26
1c51ed4f
MD
27 for (i = 0; i < ncores; i++)
28 set_cpu_possible(i, true);
0f7b332f
RK
29
30 set_smp_cross_call(gic_raise_softirq);
1c51ed4f 31}
This page took 0.102062 seconds and 5 git commands to generate.