Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dec12e62 authored by Russell King's avatar Russell King
Browse files

ARM: provide an early platform initialization hook



This allows platforms to hook into the initialization early to setup
things like scheduler clocks, etc.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 8ff1443c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ struct machine_desc {
					 struct meminfo *);
	void			(*reserve)(void);/* reserve mem blocks	*/
	void			(*map_io)(void);/* IO mapping function	*/
	void			(*init_early)(void);
	void			(*init_irq)(void);
	struct sys_timer	*timer;		/* system tick timer	*/
	void			(*init_machine)(void);
+3 −0
Original line number Diff line number Diff line
@@ -880,6 +880,9 @@ void __init setup_arch(char **cmdline_p)
#endif
#endif
	early_trap_init();

	if (mdesc->init_early)
		mdesc->init_early();
}