-
- Downloads
Merge tag 'init_task-20180117' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
Pull init_task initializer cleanups from David Howells: "It doesn't seem useful to have the init_task in a header file rather than in a normal source file. We could consolidate init_task handling instead and expand out various macros. Here's a series of patches that consolidate init_task handling: (1) Make THREAD_SIZE available to vmlinux.lds for cris, hexagon and openrisc. (2) Alter the INIT_TASK_DATA linker script macro to set init_thread_union and init_stack rather than defining these in C. Insert init_task and init_thread_into into the init_stack area in the linker script as appropriate to the configuration, with different section markers so that they end up correctly ordered. We can then get merge ia64's init_task.c into the main one. We then have a bunch of single-use INIT_*() macros that seem only to be macros because they used to be used per-arch. We can then expand these in place of the user and get rid of a few lines and a lot of backslashes. (3) Expand INIT_TASK() in place. (4) Expand in place various small INIT_*() macros that are defined conditionally. Expand them and surround them by #if[n]def/#endif in the .c file as it takes fewer lines. (5) Expand INIT_SIGNALS() and INIT_SIGHAND() in place. (6) Expand INIT_STRUCT_PID in place. These macros can then be discarded" * tag 'init_task-20180117' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs: Expand INIT_STRUCT_PID and remove Expand the INIT_SIGNALS and INIT_SIGHAND macros and remove Expand various INIT_* macros and remove Expand INIT_TASK() in init/init_task.c and remove Construct init thread stack in the linker script rather than by union openrisc: Make THREAD_SIZE available to vmlinux.lds hexagon: Make THREAD_SIZE available to vmlinux.lds cris: Make THREAD_SIZE available to vmlinux.lds
No related branches found
No related tags found
Showing
- arch/Kconfig 2 additions, 2 deletionsarch/Kconfig
- arch/alpha/include/asm/thread_info.h 0 additions, 3 deletionsarch/alpha/include/asm/thread_info.h
- arch/arc/include/asm/thread_info.h 0 additions, 3 deletionsarch/arc/include/asm/thread_info.h
- arch/arm/include/asm/thread_info.h 0 additions, 3 deletionsarch/arm/include/asm/thread_info.h
- arch/arm64/include/asm/thread_info.h 0 additions, 2 deletionsarch/arm64/include/asm/thread_info.h
- arch/blackfin/include/asm/thread_info.h 0 additions, 2 deletionsarch/blackfin/include/asm/thread_info.h
- arch/c6x/include/asm/thread_info.h 0 additions, 3 deletionsarch/c6x/include/asm/thread_info.h
- arch/cris/include/asm/processor.h 0 additions, 9 deletionsarch/cris/include/asm/processor.h
- arch/cris/include/asm/thread_info.h 7 additions, 2 deletionsarch/cris/include/asm/thread_info.h
- arch/cris/kernel/vmlinux.lds.S 1 addition, 0 deletionsarch/cris/kernel/vmlinux.lds.S
- arch/frv/include/asm/thread_info.h 0 additions, 3 deletionsarch/frv/include/asm/thread_info.h
- arch/h8300/include/asm/thread_info.h 0 additions, 3 deletionsarch/h8300/include/asm/thread_info.h
- arch/hexagon/include/asm/thread_info.h 0 additions, 3 deletionsarch/hexagon/include/asm/thread_info.h
- arch/hexagon/kernel/vmlinux.lds.S 2 additions, 0 deletionsarch/hexagon/kernel/vmlinux.lds.S
- arch/ia64/Kconfig 1 addition, 1 deletionarch/ia64/Kconfig
- arch/ia64/Makefile 1 addition, 1 deletionarch/ia64/Makefile
- arch/ia64/include/asm/thread_info.h 2 additions, 2 deletionsarch/ia64/include/asm/thread_info.h
- arch/ia64/kernel/Makefile 1 addition, 1 deletionarch/ia64/kernel/Makefile
- arch/ia64/kernel/init_task.c 0 additions, 44 deletionsarch/ia64/kernel/init_task.c
- arch/ia64/kernel/vmlinux.lds.S 1 addition, 0 deletionsarch/ia64/kernel/vmlinux.lds.S
arch/ia64/kernel/init_task.c
deleted
100644 → 0
Please sign in to comment