提交 0f234d91 编写于 作者: U Ulrich Hecht 提交者: Simon Horman

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: NUlrich Hecht <ulrich.hecht@gmail.com>
Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
上级 fe681d29
...@@ -56,6 +56,12 @@ int shmobile_cpu_disable(unsigned int cpu) ...@@ -56,6 +56,12 @@ int shmobile_cpu_disable(unsigned int cpu)
return cpu == 0 ? -EPERM : 0; 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) int shmobile_cpu_is_dead(unsigned int cpu)
{ {
return cpumask_test_cpu(cpu, &dead_cpus); return cpumask_test_cpu(cpu, &dead_cpus);
......
...@@ -84,6 +84,7 @@ static inline int shmobile_cpuidle_init(void) { return 0; } ...@@ -84,6 +84,7 @@ static inline int shmobile_cpuidle_init(void) { return 0; }
extern void shmobile_cpu_die(unsigned int cpu); extern void shmobile_cpu_die(unsigned int cpu);
extern int shmobile_cpu_disable(unsigned int cpu); extern int shmobile_cpu_disable(unsigned int cpu);
extern int shmobile_cpu_disable_any(unsigned int cpu);
#ifdef CONFIG_HOTPLUG_CPU #ifdef CONFIG_HOTPLUG_CPU
extern int shmobile_cpu_is_dead(unsigned int cpu); extern int shmobile_cpu_is_dead(unsigned int cpu);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册