remove unused uvm_pause(); ok miod@
authorjsg <jsg@openbsd.org>
Tue, 8 Oct 2024 02:29:10 +0000 (02:29 +0000)
committerjsg <jsg@openbsd.org>
Tue, 8 Oct 2024 02:29:10 +0000 (02:29 +0000)
sys/uvm/uvm_extern.h
sys/uvm/uvm_glue.c

index 3bbd150..0191372 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: uvm_extern.h,v 1.177 2024/08/24 10:46:43 mpi Exp $    */
+/*     $OpenBSD: uvm_extern.h,v 1.178 2024/10/08 02:29:10 jsg Exp $    */
 /*     $NetBSD: uvm_extern.h,v 1.57 2001/03/09 01:02:12 chs Exp $      */
 
 /*
@@ -280,7 +280,6 @@ int                 uvm_vslock_device(struct proc *, void *, size_t,
                            vm_prot_t, void **);
 void                   uvm_vsunlock_device(struct proc *, void *, size_t,
                            void *);
-void                   uvm_pause(void);
 void                   uvm_init(void); 
 void                   uvm_init_percpu(void);
 int                    uvm_io(vm_map_t, struct uio *, int);
index 9c45bfd..2d1a6b0 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: uvm_glue.c,v 1.84 2022/09/10 20:35:29 miod Exp $      */
+/*     $OpenBSD: uvm_glue.c,v 1.85 2024/10/08 02:29:10 jsg Exp $       */
 /*     $NetBSD: uvm_glue.c,v 1.44 2001/02/06 19:54:44 eeh Exp $        */
 
 /* 
 #include <sys/proc.h>
 #include <sys/resourcevar.h>
 #include <sys/buf.h>
-#include <sys/user.h>
 #ifdef SYSVSHM
 #include <sys/shm.h>
 #endif
-#include <sys/sched.h>
 
 #include <uvm/uvm.h>
 
@@ -435,18 +433,6 @@ uvm_atopg(vaddr_t kva)
        return (pg);
 }
 
-void
-uvm_pause(void)
-{
-       static unsigned int toggle;
-       if (toggle++ > 128) {
-               toggle = 0;
-               KERNEL_UNLOCK();
-               KERNEL_LOCK();
-       }
-       sched_pause(preempt);
-}
-
 #ifndef SMALL_KERNEL
 int
 fill_vmmap(struct process *pr, struct kinfo_vmentry *kve,