-/* $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 $ */
/*
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);
-/* $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>
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,