summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thread.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2007-11-14 20:21:54 +0000
committermarcel <marcel@FreeBSD.org>2007-11-14 20:21:54 +0000
commit1e7c4f0a3f35313c194b0b0704fb21ab49c0d88e (patch)
treee09b10892aff720f030e45a1b3c6850510e18f75 /sys/kern/kern_thread.c
parent5a31a4a6d6dcd79ba50f5763054555c7fe59bfc1 (diff)
downloadFreeBSD-src-1e7c4f0a3f35313c194b0b0704fb21ab49c0d88e.zip
FreeBSD-src-1e7c4f0a3f35313c194b0b0704fb21ab49c0d88e.tar.gz
o Rename cpu_thread_setup() to cpu_thread_alloc() to better
communicate that it relates to (is called by) thread_alloc() o Add cpu_thread_free() which is called from thread_free() to counter-act cpu_thread_alloc(). i386: Have cpu_thread_free() call cpu_thread_clean() to preserve behaviour. ia64: Have cpu_thread_free() call mtx_destroy() for the mutex initialized in cpu_thread_alloc(). PR: ia64/118024
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r--sys/kern/kern_thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index e1a27a5..7fdfa20 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -325,7 +325,7 @@ thread_alloc(void)
uma_zfree(thread_zone, td);
return (NULL);
}
- cpu_thread_setup(td);
+ cpu_thread_alloc(td);
return (td);
}
@@ -337,7 +337,7 @@ void
thread_free(struct thread *td)
{
- cpu_thread_clean(td);
+ cpu_thread_free(td);
if (td->td_altkstack != 0)
vm_thread_dispose_altkstack(td);
if (td->td_kstack != 0)
OpenPOWER on IntegriCloud