2 * SMP support for R-Mobile / SH-Mobile
4 * Copyright (C) 2010 Magnus Damm
6 * Based on realview, Copyright (C) 2002 ARM Ltd, All Rights Reserved
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 #include <linux/kernel.h>
13 #include <linux/errno.h>
14 #include <linux/smp.h>
16 int platform_cpu_kill(unsigned int cpu
)
21 void platform_cpu_die(unsigned int cpu
)
27 asm(".word 0xe320f003\n"
34 int platform_cpu_disable(unsigned int cpu
)
37 * we don't allow CPU 0 to be shutdown (it is still too special
38 * e.g. clock tick interrupts)
40 return cpu
== 0 ? -EPERM
: 0;