75305275a7
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>
32 lines
793 B
C
32 lines
793 B
C
/*
|
|
* This file contains common function prototypes to avoid externs in the c files.
|
|
*
|
|
* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
|
|
*
|
|
* Licensed under GPLv2 or later.
|
|
*/
|
|
|
|
#ifndef __MACH_PRIMA2_COMMON_H__
|
|
#define __MACH_PRIMA2_COMMON_H__
|
|
|
|
#include <linux/init.h>
|
|
#include <linux/reboot.h>
|
|
|
|
#include <asm/mach/time.h>
|
|
#include <asm/exception.h>
|
|
|
|
extern const struct smp_operations sirfsoc_smp_ops;
|
|
extern void sirfsoc_secondary_startup(void);
|
|
extern void sirfsoc_cpu_die(unsigned int cpu);
|
|
|
|
extern void __init sirfsoc_of_irq_init(void);
|
|
extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs);
|
|
|
|
#ifdef CONFIG_SUSPEND
|
|
extern int sirfsoc_pm_init(void);
|
|
#else
|
|
static inline int sirfsoc_pm_init(void) { return 0; }
|
|
#endif
|
|
|
|
#endif
|