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/kern/kern_thr.c | |
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/kern/kern_thr.c')
-rw-r--r-- | sys/kern/kern_thr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 75bd83d..10ccdab 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -163,7 +163,7 @@ thr_new_initthr(struct thread *td, void *thunk) stack.ss_sp = param->stack_base; stack.ss_size = param->stack_size; /* Set upcall address to user thread entry function. */ - cpu_set_upcall_kse(td, param->start_func, param->arg, &stack); + cpu_set_upcall(td, param->start_func, param->arg, &stack); /* Setup user TLS address and TLS pointer register. */ return (cpu_set_user_tls(td, param->tls_base)); } @@ -227,7 +227,7 @@ thread_create(struct thread *td, struct rtprio *rtp, 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)); |