|
@@ -35,11 +35,11 @@ struct plat_smp_ops {
|
|
|
#endif
|
|
|
};
|
|
|
|
|
|
-extern void register_smp_ops(struct plat_smp_ops *ops);
|
|
|
+extern void register_smp_ops(const struct plat_smp_ops *ops);
|
|
|
|
|
|
static inline void plat_smp_setup(void)
|
|
|
{
|
|
|
- extern struct plat_smp_ops *mp_ops; /* private */
|
|
|
+ extern const struct plat_smp_ops *mp_ops; /* private */
|
|
|
|
|
|
mp_ops->smp_setup();
|
|
|
}
|
|
@@ -57,7 +57,7 @@ static inline void plat_smp_setup(void)
|
|
|
/* UP, nothing to do ... */
|
|
|
}
|
|
|
|
|
|
-static inline void register_smp_ops(struct plat_smp_ops *ops)
|
|
|
+static inline void register_smp_ops(const struct plat_smp_ops *ops)
|
|
|
{
|
|
|
}
|
|
|
|
|
@@ -66,7 +66,7 @@ static inline void register_smp_ops(struct plat_smp_ops *ops)
|
|
|
static inline int register_up_smp_ops(void)
|
|
|
{
|
|
|
#ifdef CONFIG_SMP_UP
|
|
|
- extern struct plat_smp_ops up_smp_ops;
|
|
|
+ extern const struct plat_smp_ops up_smp_ops;
|
|
|
|
|
|
register_smp_ops(&up_smp_ops);
|
|
|
|
|
@@ -79,7 +79,7 @@ static inline int register_up_smp_ops(void)
|
|
|
static inline int register_cmp_smp_ops(void)
|
|
|
{
|
|
|
#ifdef CONFIG_MIPS_CMP
|
|
|
- extern struct plat_smp_ops cmp_smp_ops;
|
|
|
+ extern const struct plat_smp_ops cmp_smp_ops;
|
|
|
|
|
|
if (!mips_cm_present())
|
|
|
return -ENODEV;
|
|
@@ -95,7 +95,7 @@ static inline int register_cmp_smp_ops(void)
|
|
|
static inline int register_vsmp_smp_ops(void)
|
|
|
{
|
|
|
#ifdef CONFIG_MIPS_MT_SMP
|
|
|
- extern struct plat_smp_ops vsmp_smp_ops;
|
|
|
+ extern const struct plat_smp_ops vsmp_smp_ops;
|
|
|
|
|
|
register_smp_ops(&vsmp_smp_ops);
|
|
|
|