HomeFreeBSD

Set TDP_KTHREAD before calling cpu_fork() and cpu_copy_thread().

Description

Set TDP_KTHREAD before calling cpu_fork() and cpu_copy_thread().

This permits these routines to use special logic for initializing MD
kthread state.

For the kproc case, this required moving the logic to set these flags
from kproc_create() into do_fork().

Sponsored by: Netflix

(cherry picked from commit 640d54045bdbf894ae3c75cd9818c29fc2f6e5e7)

Details

Provenance
jhbAuthored on Mar 12 2021, 5:48 PM
Parents
rGcc6d86f2ff9c: Don't pass RFPROC to kproc_create(), it is redundant.
Branches
Unknown
Tags
Unknown