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-berlin | |
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-berlin')
-rw-r--r-- | arch/arm/mach-berlin/platsmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-berlin/platsmp.c b/arch/arm/mach-berlin/platsmp.c index 405cd37e4fba..93f90688db18 100644 --- a/arch/arm/mach-berlin/platsmp.c +++ b/arch/arm/mach-berlin/platsmp.c | |||
@@ -119,7 +119,7 @@ static int berlin_cpu_kill(unsigned int cpu) | |||
119 | } | 119 | } |
120 | #endif | 120 | #endif |
121 | 121 | ||
122 | static struct smp_operations berlin_smp_ops __initdata = { | 122 | static const struct smp_operations berlin_smp_ops __initconst = { |
123 | .smp_prepare_cpus = berlin_smp_prepare_cpus, | 123 | .smp_prepare_cpus = berlin_smp_prepare_cpus, |
124 | .smp_boot_secondary = berlin_boot_secondary, | 124 | .smp_boot_secondary = berlin_boot_secondary, |
125 | #ifdef CONFIG_HOTPLUG_CPU | 125 | #ifdef CONFIG_HOTPLUG_CPU |