diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-11-14 20:39:53 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-12-01 16:17:45 -0500 |
commit | 75305275a721d33ae9abfaeed2817cec8b2fee9a (patch) | |
tree | 260c042565cc39c539cb41482ebe395c38829966 /arch/arm/mach-bcm | |
parent | 635e958dad5639102fcf8acf2d8feb6a80c6e689 (diff) |
ARM: use const and __initconst for smp_operations
These smp_operations structures are not over-written, so add "const"
qualifier and replace __initdata with __initconst.
Also, add "static" where it is possible.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Moritz Fischer <moritz.fischer@ettus.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org> # qcom part
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Wei Xu <xuwei5@hisilicon.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-bcm')
-rw-r--r-- | arch/arm/mach-bcm/bcm63xx_smp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-bcm/kona_smp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-bcm/platsmp-brcmstb.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-bcm/bcm63xx_smp.c b/arch/arm/mach-bcm/bcm63xx_smp.c index 19be90421f4d..9b6727ed68cd 100644 --- a/arch/arm/mach-bcm/bcm63xx_smp.c +++ b/arch/arm/mach-bcm/bcm63xx_smp.c | |||
@@ -161,7 +161,7 @@ static void __init bcm63138_smp_prepare_cpus(unsigned int max_cpus) | |||
161 | } | 161 | } |
162 | } | 162 | } |
163 | 163 | ||
164 | struct smp_operations bcm63138_smp_ops __initdata = { | 164 | static const struct smp_operations bcm63138_smp_ops __initconst = { |
165 | .smp_prepare_cpus = bcm63138_smp_prepare_cpus, | 165 | .smp_prepare_cpus = bcm63138_smp_prepare_cpus, |
166 | .smp_boot_secondary = bcm63138_smp_boot_secondary, | 166 | .smp_boot_secondary = bcm63138_smp_boot_secondary, |
167 | }; | 167 | }; |
diff --git a/arch/arm/mach-bcm/kona_smp.c b/arch/arm/mach-bcm/kona_smp.c index 66a0465528a5..da8328b97b7d 100644 --- a/arch/arm/mach-bcm/kona_smp.c +++ b/arch/arm/mach-bcm/kona_smp.c | |||
@@ -194,7 +194,7 @@ static int bcm_boot_secondary(unsigned int cpu, struct task_struct *idle) | |||
194 | return -ENOSYS; | 194 | return -ENOSYS; |
195 | } | 195 | } |
196 | 196 | ||
197 | static struct smp_operations bcm_smp_ops __initdata = { | 197 | static const struct smp_operations bcm_smp_ops __initconst = { |
198 | .smp_prepare_cpus = bcm_smp_prepare_cpus, | 198 | .smp_prepare_cpus = bcm_smp_prepare_cpus, |
199 | .smp_boot_secondary = bcm_boot_secondary, | 199 | .smp_boot_secondary = bcm_boot_secondary, |
200 | }; | 200 | }; |
diff --git a/arch/arm/mach-bcm/platsmp-brcmstb.c b/arch/arm/mach-bcm/platsmp-brcmstb.c index 44d6bddf7a4e..40dc8448445e 100644 --- a/arch/arm/mach-bcm/platsmp-brcmstb.c +++ b/arch/arm/mach-bcm/platsmp-brcmstb.c | |||
@@ -356,7 +356,7 @@ static int brcmstb_boot_secondary(unsigned int cpu, struct task_struct *idle) | |||
356 | return 0; | 356 | return 0; |
357 | } | 357 | } |
358 | 358 | ||
359 | static struct smp_operations brcmstb_smp_ops __initdata = { | 359 | static const struct smp_operations brcmstb_smp_ops __initconst = { |
360 | .smp_prepare_cpus = brcmstb_cpu_ctrl_setup, | 360 | .smp_prepare_cpus = brcmstb_cpu_ctrl_setup, |
361 | .smp_boot_secondary = brcmstb_boot_secondary, | 361 | .smp_boot_secondary = brcmstb_boot_secondary, |
362 | #ifdef CONFIG_HOTPLUG_CPU | 362 | #ifdef CONFIG_HOTPLUG_CPU |