From fda03b7cfc3c5e62699fdaf93abb21309f7a7ae5 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 11 Jun 2003 05:20:33 +0000 Subject: GC unused cpu_wait() function --- sys/alpha/alpha/vm_machdep.c | 6 ------ sys/amd64/amd64/vm_machdep.c | 5 ----- sys/i386/i386/vm_machdep.c | 6 ------ sys/ia64/ia64/vm_machdep.c | 7 ------- sys/powerpc/aim/vm_machdep.c | 6 ------ sys/powerpc/powerpc/vm_machdep.c | 6 ------ sys/sparc64/sparc64/vm_machdep.c | 5 ----- sys/sys/proc.h | 1 - sys/vm/vm_glue.c | 1 - 9 files changed, 43 deletions(-) (limited to 'sys') diff --git a/sys/alpha/alpha/vm_machdep.c b/sys/alpha/alpha/vm_machdep.c index 8e85a31..7235180 100644 --- a/sys/alpha/alpha/vm_machdep.c +++ b/sys/alpha/alpha/vm_machdep.c @@ -320,12 +320,6 @@ cpu_set_upcall_kse(struct thread *td, struct kse_upcall *ku) /* XXX */ } -void -cpu_wait(p) - struct proc *p; -{ -} - /* * Reset back to firmware. */ diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c index 768fbeb..d3a544e 100644 --- a/sys/amd64/amd64/vm_machdep.c +++ b/sys/amd64/amd64/vm_machdep.c @@ -233,11 +233,6 @@ cpu_set_upcall_kse(struct thread *td, struct kse_upcall *ku) { } -void -cpu_wait(p) - struct proc *p; -{ -} /* * Force reset the processor by invalidating the entire address space! diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index 3cb48a1..10d9714 100644 --- a/sys/i386/i386/vm_machdep.c +++ b/sys/i386/i386/vm_machdep.c @@ -413,12 +413,6 @@ cpu_set_upcall_kse(struct thread *td, struct kse_upcall *ku) (int)ku->ku_mailbox); } -void -cpu_wait(p) - struct proc *p; -{ -} - /* * Convert kernel VA to physical address */ diff --git a/sys/ia64/ia64/vm_machdep.c b/sys/ia64/ia64/vm_machdep.c index 7603afb..a9f927a 100644 --- a/sys/ia64/ia64/vm_machdep.c +++ b/sys/ia64/ia64/vm_machdep.c @@ -239,7 +239,6 @@ cpu_set_fork_handler(td, func, arg) /* * cpu_exit is called as the last action during exit. * We drop the fp state (if we have it) and switch to a live one. - * When the proc is reaped, cpu_wait() will gc the VM state. */ void cpu_exit(struct thread *td) @@ -255,12 +254,6 @@ cpu_sched_exit(td) { } -void -cpu_wait(p) - struct proc *p; -{ -} - /* * Force reset the processor by invalidating the entire address space! */ diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c index b12db5b..b9aa06b 100644 --- a/sys/powerpc/aim/vm_machdep.c +++ b/sys/powerpc/aim/vm_machdep.c @@ -199,12 +199,6 @@ cpu_sched_exit(td) { } -void -cpu_wait(td) - struct proc *td; -{ -} - /* Temporary helper */ void cpu_throw(void) diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c index b12db5b..b9aa06b 100644 --- a/sys/powerpc/powerpc/vm_machdep.c +++ b/sys/powerpc/powerpc/vm_machdep.c @@ -199,12 +199,6 @@ cpu_sched_exit(td) { } -void -cpu_wait(td) - struct proc *td; -{ -} - /* Temporary helper */ void cpu_throw(void) diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c index e96875c..7f54e12 100644 --- a/sys/sparc64/sparc64/vm_machdep.c +++ b/sys/sparc64/sparc64/vm_machdep.c @@ -308,11 +308,6 @@ cpu_set_fork_handler(struct thread *td, void (*func)(void *), void *arg) fp->fr_local[1] = (u_long)arg; } -void -cpu_wait(struct proc *p) -{ -} - int is_physical_memory(vm_paddr_t addr) { diff --git a/sys/sys/proc.h b/sys/sys/proc.h index dec25e5..a01702d 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -879,7 +879,6 @@ void cpu_sched_exit(struct thread *); void exit1(struct thread *, int) __dead2; void cpu_fork(struct thread *, struct proc *, struct thread *, int); void cpu_set_fork_handler(struct thread *, void (*)(void *), void *); -void cpu_wait(struct proc *); /* New in KSE. */ struct ksegrp *ksegrp_alloc(void); diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 8dce649..67b585e 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -474,7 +474,6 @@ vm_waitproc(p) { GIANT_REQUIRED; - cpu_wait(p); vmspace_exitfree(p); /* and clean-out the vmspace */ } -- cgit v1.1