Created
May 10, 2013 21:20
-
-
Save mgalgs/5557515 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static initcall_t *initcall_levels[] __initdata = { | |
__initcall0_start, | |
__initcall1_start, | |
__initcall2_start, | |
__initcall3_start, | |
__initcall4_start, | |
__initcall5_start, | |
__initcall6_start, | |
__initcall7_start, | |
__initcall_end, | |
}; | |
static void __init do_initcall_level(int level) | |
{ | |
extern const struct kernel_param __start___param[], __stop___param[]; | |
initcall_t *fn; | |
for (fn = initcall_levels[level]; fn < initcall_levels[level+1]; fn++) | |
do_one_initcall(*fn); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment