]> git.baikalelectronics.ru Git - kernel.git/commit
params: <level>_initcall-like kernel parameters
authorPawel Moll <pawel.moll@arm.com>
Mon, 26 Mar 2012 02:20:51 +0000 (12:50 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 26 Mar 2012 02:20:51 +0000 (12:50 +1030)
commit82c82c60b1dad1903127f6e52bbb9da02a9a4e8d
tree22735ecd2132de4570fbad81e5716f7fee3448d5
parent23b6f75d7449a94e06fecada0deb160f98cfe7b5
params: <level>_initcall-like kernel parameters

This patch adds a set of macros that can be used to declare
kernel parameters to be parsed _before_ initcalls at a chosen
level are executed.  We rename the now-unused "flags" field of
struct kernel_param as the level.  It's signed, for when we
use this for early params as well, in future.

Linker macro collating init calls had to be modified in order
to add additional symbols between levels that are later used
by the init code to split the calls into blocks.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
arch/powerpc/mm/hugetlbpage.c
include/asm-generic/vmlinux.lds.h
include/linux/moduleparam.h
init/main.c
kernel/module.c
kernel/params.c