“6d7bfd14e593455a0801c62db86f82912c52c3a1”上不存在“arch/s390/include/asm/timer.h”
提交 dec12e62 编写于 作者: R Russell King

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: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 8ff1443c
...@@ -37,6 +37,7 @@ struct machine_desc { ...@@ -37,6 +37,7 @@ struct machine_desc {
struct meminfo *); struct meminfo *);
void (*reserve)(void);/* reserve mem blocks */ void (*reserve)(void);/* reserve mem blocks */
void (*map_io)(void);/* IO mapping function */ void (*map_io)(void);/* IO mapping function */
void (*init_early)(void);
void (*init_irq)(void); void (*init_irq)(void);
struct sys_timer *timer; /* system tick timer */ struct sys_timer *timer; /* system tick timer */
void (*init_machine)(void); void (*init_machine)(void);
......
...@@ -880,6 +880,9 @@ void __init setup_arch(char **cmdline_p) ...@@ -880,6 +880,9 @@ void __init setup_arch(char **cmdline_p)
#endif #endif
#endif #endif
early_trap_init(); early_trap_init();
if (mdesc->init_early)
mdesc->init_early();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册