Removed vestiges of Mach lock types.

vm_map.h:
Removed #include of <sys/proc.h>.  curproc is only used in some macros
and users of the macros already include <sys/proc.h>.
This commit is contained in:
Bruce Evans 1997-02-18 14:07:03 +00:00
parent cd9307f60d
commit 697030ed3d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22878
2 changed files with 1 additions and 14 deletions

View File

@ -70,15 +70,4 @@ struct vm_page;
typedef struct vm_page *vm_page_t;
#endif
/*
* MACH VM locking type mappings to kernel types
*/
#include <sys/lock.h>
typedef struct simplelock simple_lock_data_t;
typedef struct simplelock *simple_lock_t;
#if 0
typedef struct lock lock_data_t;
typedef struct lock *lock_t;
#endif
#endif /* VM_H */

View File

@ -133,7 +133,7 @@ struct vm_map {
vm_size_t size; /* virtual size */
boolean_t is_main_map; /* Am I a main map? */
int ref_count; /* Reference count */
simple_lock_data_t ref_lock; /* Lock for ref_count field */
struct simplelock ref_lock; /* Lock for ref_count field */
vm_map_entry_t hint; /* hint for quick lookups */
vm_map_entry_t first_free; /* First free space hint */
boolean_t entries_pageable; /* map entries pageable?? */
@ -188,8 +188,6 @@ typedef struct {
* Perform locking on the data portion of a map.
*/
#include <sys/proc.h> /* XXX for curproc and p_pid */
#define vm_map_lock_drain_interlock(map) { \
lockmgr(&(map)->lock, LK_DRAIN|LK_INTERLOCK, \
&(map)->ref_lock, curproc); \