linux/arch
Eric W. Biederman 36cb0e1cda fork: Explicity test for idle tasks in copy_thread
The architectures ia64 and parisc have special handling for the idle
thread in copy_process.  Add a flag named idle to kernel_clone_args
and use it to explicity test if an idle process is being created.

Fullfill the expectations of the rest of the copy_thread
implemetations and pass a function pointer in .stack from fork_idle().
This makes what is happening in copy_thread better defined, and is
useful to make idle threads less special.

Link: https://lkml.kernel.org/r/20220506141512.516114-3-ebiederm@xmission.com
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2022-05-07 09:01:59 -05:00
..
alpha fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
arc fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
arm fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
arm64 fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
csky fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
h8300 fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
hexagon fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
ia64 fork: Explicity test for idle tasks in copy_thread 2022-05-07 09:01:59 -05:00
m68k fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
microblaze fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
mips fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
nios2 fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
openrisc fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
parisc fork: Explicity test for idle tasks in copy_thread 2022-05-07 09:01:59 -05:00
powerpc fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
riscv fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
s390 fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
sh fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
sparc fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
um fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
x86 fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
xtensa fork: Pass struct kernel_clone_args into copy_thread 2022-05-07 09:01:48 -05:00
.gitignore
Kconfig Networking fixes for 5.18-rc1 and rethook patches. 2022-03-31 11:23:31 -07:00