Unverified Commit c823f416 authored by Thomas Bogendoerfer's avatar Thomas Bogendoerfer Committed by Paul Burton
Browse files

MIPS: SGI-IP27: move registering of smp ops into IP27 specific code



Calling register_smp_ops() in plat_mem_setup() is still early enough.
So by doing this we could remove the ugly #ifdef CONFIG_SGI_IP27 in
fw/arc/init.c.

Signed-off-by: default avatarThomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
parent 249be563
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -54,11 +54,4 @@ void __init prom_init(void)
	ArcRead(0, &c, 1, &cnt);
	ArcEnterInteractiveMode();
#endif
#ifdef CONFIG_SGI_IP27
	{
		extern const struct plat_smp_ops ip27_smp_ops;

		register_smp_ops(&ip27_smp_ops);
	}
#endif
}
+1 −0
Original line number Diff line number Diff line
@@ -5,5 +5,6 @@

extern void ip27_reboot_setup(void);
extern void hub_rt_clock_event_init(void);
extern const struct plat_smp_ops ip27_smp_ops;

#endif /* __IP27_COMMON_H */
+2 −0
Original line number Diff line number Diff line
@@ -120,6 +120,8 @@ void __init plat_mem_setup(void)
	u64 p, e, n_mode;
	nasid_t nid;

	register_smp_ops(&ip27_smp_ops);

	ip27_reboot_setup();

	/*