From 1e7c4f0a3f35313c194b0b0704fb21ab49c0d88e Mon Sep 17 00:00:00 2001 From: marcel Date: Wed, 14 Nov 2007 20:21:54 +0000 Subject: 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 --- sys/powerpc/aim/vm_machdep.c | 7 ++++++- sys/powerpc/powerpc/vm_machdep.c | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'sys/powerpc') diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c index 1492a07..ce8416a 100644 --- a/sys/powerpc/aim/vm_machdep.c +++ b/sys/powerpc/aim/vm_machdep.c @@ -277,7 +277,7 @@ cpu_thread_clean(struct thread *td) } void -cpu_thread_setup(struct thread *td) +cpu_thread_alloc(struct thread *td) { struct pcb *pcb; @@ -288,6 +288,11 @@ cpu_thread_setup(struct thread *td) } void +cpu_thread_free(struct thread *td) +{ +} + +void cpu_thread_swapin(struct thread *td) { } diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c index 1492a07..ce8416a 100644 --- a/sys/powerpc/powerpc/vm_machdep.c +++ b/sys/powerpc/powerpc/vm_machdep.c @@ -277,7 +277,7 @@ cpu_thread_clean(struct thread *td) } void -cpu_thread_setup(struct thread *td) +cpu_thread_alloc(struct thread *td) { struct pcb *pcb; @@ -288,6 +288,11 @@ cpu_thread_setup(struct thread *td) } void +cpu_thread_free(struct thread *td) +{ +} + +void cpu_thread_swapin(struct thread *td) { } -- cgit v1.1