Merge tag 'ecryptfs-3.11-rc1-cleanup' of git://git.kernel.org/pub/scm/linux/kernel...
[deliverable/linux.git] / arch / arm / mach-shmobile / platsmp.c
1 /*
2 * SMP support for R-Mobile / SH-Mobile
3 *
4 * Copyright (C) 2010 Magnus Damm
5 * Copyright (C) 2011 Paul Mundt
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>
14 #include <linux/smp.h>
15
16 void __init shmobile_smp_init_cpus(unsigned int ncores)
17 {
18 unsigned int i;
19
20 if (ncores > nr_cpu_ids) {
21 pr_warn("SMP: %u cores greater than maximum (%u), clipping\n",
22 ncores, nr_cpu_ids);
23 ncores = nr_cpu_ids;
24 }
25
26 for (i = 0; i < ncores; i++)
27 set_cpu_possible(i, true);
28 }
This page took 0.04062 seconds and 5 git commands to generate.