Skip to content

Commit d3f3fb0

Browse files
geertuhorms
authored andcommitted
ARM: shmobile: apmu: Move #ifdef CONFIG_SMP to cover more functions
shmobile_smp_apmu_prepare_cpus() is used only if CONFIG_SMP=y. Hence move the #ifdef to cover shmobile_smp_apmu_prepare_cpus() and all functions only called by it (apmu_init_cpu() and apmu_parse_cfg()). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 parent 2477a35 commit d3f3fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mach-shmobile/platsmp-apmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ static int __maybe_unused apmu_wrap(int cpu, int (*fn)(void __iomem *p, int cpu)
7474
return p ? fn(p, apmu_cpus[cpu].bit) : -EINVAL;
7575
}
7676

77+
#ifdef CONFIG_SMP
7778
static void apmu_init_cpu(struct resource *res, int cpu, int bit)
7879
{
7980
if ((cpu >= ARRAY_SIZE(apmu_cpus)) || apmu_cpus[cpu].iomem)
@@ -128,7 +129,6 @@ void __init shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus,
128129
apmu_parse_cfg(apmu_init_cpu, apmu_config, num);
129130
}
130131

131-
#ifdef CONFIG_SMP
132132
int shmobile_smp_apmu_boot_secondary(unsigned int cpu, struct task_struct *idle)
133133
{
134134
/* For this particular CPU register boot vector */

0 commit comments

Comments
 (0)