diff options
author | kib <kib@FreeBSD.org> | 2016-06-16 12:05:44 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-06-16 12:05:44 +0000 |
commit | 496a3b1f658d32d5ed000ef2ee765245a29a6c67 (patch) | |
tree | 66e95908604c725c90a1a3d19849f3f69e59521a /sys/compat | |
parent | 2c44599f9cf7cf8083305e492d232b68f3682570 (diff) | |
download | FreeBSD-src-496a3b1f658d32d5ed000ef2ee765245a29a6c67.zip FreeBSD-src-496a3b1f658d32d5ed000ef2ee765245a29a6c67.tar.gz |
Update comments for the MD functions managing contexts for new
threads, to make it less confusing and using modern kernel terms.
Rename the functions to reflect current use of the functions, instead
of the historic KSE conventions:
cpu_set_fork_handler -> cpu_fork_kthread_handler (for kthreads)
cpu_set_upcall -> cpu_copy_thread (for forks)
cpu_set_upcall_kse -> cpu_set_upcall (for new threads creation)
Reviewed by: jhb (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (hrs)
Differential revision: https://reviews.freebsd.org/D6731
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_fork.c b/sys/compat/linux/linux_fork.c index 4c30c9a..971006d 100644 --- a/sys/compat/linux/linux_fork.c +++ b/sys/compat/linux/linux_fork.c @@ -299,8 +299,8 @@ linux_clone_thread(struct thread *td, struct linux_clone_args *args) error = kern_thr_alloc(p, 0, &newtd); if (error) goto fail; - - cpu_set_upcall(newtd, td); + + cpu_copy_thread(newtd, td); bzero(&newtd->td_startzero, __rangeof(struct thread, td_startzero, td_endzero)); |