diff options
author | Magnus Damm <damm@opensource.se> | 2013-02-18 14:47:44 +0100 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-03-12 18:13:21 +0100 |
commit | eebadd676499e4c8aee181a669cc8a386e308c31 (patch) | |
tree | 83053bdf8028c5d03ec9d078944e10fac0834bab /arch/arm/mach-shmobile/smp-sh73a0.c | |
parent | ARM: shmobile: Update r8a7779 to use scu_power_mode() (diff) | |
download | linux-eebadd676499e4c8aee181a669cc8a386e308c31.tar.xz linux-eebadd676499e4c8aee181a669cc8a386e308c31.zip |
ARM: shmobile: Use sh73a0-specific cpu disable code
Convert the sh73a0 CPU Hotplug code to use a local
implementation of ->cpu_disable(). With this change
in place the sh73a0 SMP code does no longer depend
on hotplug.c.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/smp-sh73a0.c')
-rw-r--r-- | arch/arm/mach-shmobile/smp-sh73a0.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/smp-sh73a0.c b/arch/arm/mach-shmobile/smp-sh73a0.c index 593f8de28c5e..5ae502b16437 100644 --- a/arch/arm/mach-shmobile/smp-sh73a0.c +++ b/arch/arm/mach-shmobile/smp-sh73a0.c @@ -124,6 +124,11 @@ static void sh73a0_cpu_die(unsigned int cpu) /* Enter shutdown mode */ cpu_do_idle(); } + +static int sh73a0_cpu_disable(unsigned int cpu) +{ + return 0; /* CPU0 and CPU1 supported */ +} #endif /* CONFIG_HOTPLUG_CPU */ struct smp_operations sh73a0_smp_ops __initdata = { @@ -134,6 +139,6 @@ struct smp_operations sh73a0_smp_ops __initdata = { #ifdef CONFIG_HOTPLUG_CPU .cpu_kill = sh73a0_cpu_kill, .cpu_die = sh73a0_cpu_die, - .cpu_disable = shmobile_cpu_disable_any, + .cpu_disable = sh73a0_cpu_disable, #endif }; |