Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys there's no need to initialize simplelock on uniproce...
details: https://anonhg.NetBSD.org/src/rev/7006f17f5fea
branches: trunk
changeset: 557653:7006f17f5fea
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Jan 14 11:34:48 2004 +0000
description:
there's no need to initialize simplelock on uniprocessor.
diffstat:
sys/sys/lock.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r c2456aa651f5 -r 7006f17f5fea sys/sys/lock.h
--- a/sys/sys/lock.h Wed Jan 14 11:31:55 2004 +0000
+++ b/sys/sys/lock.h Wed Jan 14 11:34:48 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lock.h,v 1.51 2003/11/23 08:57:16 yamt Exp $ */
+/* $NetBSD: lock.h,v 1.52 2004/01/14 11:34:48 yamt Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -352,12 +352,13 @@
#define LOCK_ASSERT(x) /* nothing */
#define simple_lock_only_held(x,y) /* nothing */
#else
-#define simple_lock_init(alp) (alp)->lock_data = __SIMPLELOCK_UNLOCKED
#define simple_lock_try(alp) (1)
#ifndef lint
+#define simple_lock_init(alp) (void)(alp)
#define simple_lock(alp) (void)(alp)
#define simple_unlock(alp) (void)(alp)
#else /* lint */
+#define simple_lock_init(alp) /* nothing */
#define simple_lock(alp) /* nothing */
#define simple_unlock(alp) /* nothing */
#define simple_lock_only_held(x,y) /* nothing */
Home |
Main Index |
Thread Index |
Old Index