Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Use single const char array instead of over 200 stri...
details: https://anonhg.NetBSD.org/src/rev/eb8287258559
branches: trunk
changeset: 500532:eb8287258559
user: enami <enami%NetBSD.org@localhost>
date: Wed Dec 13 08:06:11 2000 +0000
description:
Use single const char array instead of over 200 string constant.
diffstat:
sys/uvm/uvm_map.c | 3 ++-
sys/uvm/uvm_map.h | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diffs (43 lines):
diff -r 9f0dbe545f86 -r eb8287258559 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Wed Dec 13 07:53:58 2000 +0000
+++ b/sys/uvm/uvm_map.c Wed Dec 13 08:06:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
+/* $NetBSD: uvm_map.c,v 1.87 2000/12/13 08:06:11 enami Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -95,6 +95,7 @@
struct uvm_cnt uvm_map_call, map_backmerge, map_forwmerge;
struct uvm_cnt uvm_mlk_call, uvm_mlk_hint;
+const char vmmapbsy[] = "vmmapbsy";
/*
* pool for vmspace structures.
diff -r 9f0dbe545f86 -r eb8287258559 sys/uvm/uvm_map.h
--- a/sys/uvm/uvm_map.h Wed Dec 13 07:53:58 2000 +0000
+++ b/sys/uvm/uvm_map.h Wed Dec 13 08:06:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.h,v 1.22 2000/09/13 15:00:25 thorpej Exp $ */
+/* $NetBSD: uvm_map.h,v 1.23 2000/12/13 08:06:12 enami Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -385,6 +385,7 @@
static __inline boolean_t vm_map_lock_try __P((vm_map_t));
static __inline void vm_map_lock __P((vm_map_t));
+extern const char vmmapbsy[];
static __inline boolean_t
vm_map_lock_try(map)
@@ -425,7 +426,7 @@
simple_lock(&map->flags_lock);
while (map->flags & VM_MAP_BUSY) {
map->flags |= VM_MAP_WANTLOCK;
- ltsleep(&map->flags, PVM, "vmmapbsy", 0, &map->flags_lock);
+ ltsleep(&map->flags, PVM, vmmapbsy, 0, &map->flags_lock);
}
error = lockmgr(&map->lock, LK_EXCLUSIVE|LK_SLEEPFAIL|LK_INTERLOCK,
Home |
Main Index |
Thread Index |
Old Index