realtek: fix SMP startup
The scope of the SMP startup structure is wrong. It is created on the
stack and not as a global variable. This can lead to startup failures.
Fixes: 3f41360eb7
("realtek: use upstream recommendation for CPU start")
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de
This commit is contained in:
parent
f1f97db627
commit
2b12da1313
1 changed files with 1 additions and 2 deletions
|
@ -31,6 +31,7 @@ const void *fdt;
|
||||||
|
|
||||||
#ifdef CONFIG_MIPS_MT_SMP
|
#ifdef CONFIG_MIPS_MT_SMP
|
||||||
extern const struct plat_smp_ops vsmp_smp_ops;
|
extern const struct plat_smp_ops vsmp_smp_ops;
|
||||||
|
static struct plat_smp_ops rtl_smp_ops;
|
||||||
|
|
||||||
static void rtl_init_secondary(void)
|
static void rtl_init_secondary(void)
|
||||||
{
|
{
|
||||||
|
@ -220,8 +221,6 @@ void __init prom_init(void)
|
||||||
|
|
||||||
#ifdef CONFIG_MIPS_MT_SMP
|
#ifdef CONFIG_MIPS_MT_SMP
|
||||||
if (cpu_has_mipsmt) {
|
if (cpu_has_mipsmt) {
|
||||||
struct plat_smp_ops rtl_smp_ops;
|
|
||||||
|
|
||||||
rtl_smp_ops = vsmp_smp_ops;
|
rtl_smp_ops = vsmp_smp_ops;
|
||||||
rtl_smp_ops.init_secondary = rtl_init_secondary;
|
rtl_smp_ops.init_secondary = rtl_init_secondary;
|
||||||
register_smp_ops(&rtl_smp_ops);
|
register_smp_ops(&rtl_smp_ops);
|
||||||
|
|
Loading…
Reference in a new issue