Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Russell King <rmk+kernel@arm.linux.org.uk>

+4
+1
arch/arm/include/asm/mach/arch.h
··· 37 37 struct meminfo *); 38 38 void (*reserve)(void);/* reserve mem blocks */ 39 39 void (*map_io)(void);/* IO mapping function */ 40 + void (*init_early)(void); 40 41 void (*init_irq)(void); 41 42 struct sys_timer *timer; /* system tick timer */ 42 43 void (*init_machine)(void);
+3
arch/arm/kernel/setup.c
··· 880 880 #endif 881 881 #endif 882 882 early_trap_init(); 883 + 884 + if (mdesc->init_early) 885 + mdesc->init_early(); 883 886 } 884 887 885 888