diff options
author | Ulrich Hecht <ulrich.hecht@gmail.com> | 2013-01-10 14:16:43 +0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-01-30 08:07:59 +0400 |
commit | 0f234d91b8f50119c4c921db9d9dc0dac24db383 (patch) | |
tree | 75b08e124c590f4091b75b2b768b5bd000f510dc /arch/arm/mach-shmobile | |
parent | fe681d2941a7dc4870753d88545a35ec5080d710 (diff) | |
download | linux-0f234d91b8f50119c4c921db9d9dc0dac24db383.tar.xz |
ARM: mach-shmobile: add shmobile_cpu_disable_any()
Method to disable any core to be used on platforms where CPU0 does not
need special treatment.
Signed-off-by: Ulrich Hecht <ulrich.hecht@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/hotplug.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/common.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/hotplug.c b/arch/arm/mach-shmobile/hotplug.c index b09a0bdbf813..a1524e3367b0 100644 --- a/arch/arm/mach-shmobile/hotplug.c +++ b/arch/arm/mach-shmobile/hotplug.c @@ -56,6 +56,12 @@ int shmobile_cpu_disable(unsigned int cpu) return cpu == 0 ? -EPERM : 0; } +int shmobile_cpu_disable_any(unsigned int cpu) +{ + cpumask_clear_cpu(cpu, &dead_cpus); + return 0; +} + int shmobile_cpu_is_dead(unsigned int cpu) { return cpumask_test_cpu(cpu, &dead_cpus); diff --git a/arch/arm/mach-shmobile/include/mach/common.h b/arch/arm/mach-shmobile/include/mach/common.h index 64c0622ae7d6..e48606d8a2be 100644 --- a/arch/arm/mach-shmobile/include/mach/common.h +++ b/arch/arm/mach-shmobile/include/mach/common.h @@ -84,6 +84,7 @@ static inline int shmobile_cpuidle_init(void) { return 0; } extern void shmobile_cpu_die(unsigned int cpu); extern int shmobile_cpu_disable(unsigned int cpu); +extern int shmobile_cpu_disable_any(unsigned int cpu); #ifdef CONFIG_HOTPLUG_CPU extern int shmobile_cpu_is_dead(unsigned int cpu); |