Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Don't use _lock_cas explicitly, use ato...
details: https://anonhg.NetBSD.org/src/rev/945173c310bc
branches: trunk
changeset: 326418:945173c310bc
user: matt <matt%NetBSD.org@localhost>
date: Wed Jan 29 00:17:21 2014 +0000
description:
Don't use _lock_cas explicitly, use atomic_cas_ulong which could be one its
aliases.
diffstat:
sys/arch/arm/include/rwlock.h | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (22 lines):
diff -r 32fc084fc26e -r 945173c310bc sys/arch/arm/include/rwlock.h
--- a/sys/arch/arm/include/rwlock.h Tue Jan 28 22:06:39 2014 +0000
+++ b/sys/arch/arm/include/rwlock.h Wed Jan 29 00:17:21 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rwlock.h,v 1.5 2008/04/28 20:23:14 martin Exp $ */
+/* $NetBSD: rwlock.h,v 1.6 2014/01/29 00:17:21 matt Exp $ */
/*-
* Copyright (c) 2002, 2006 The NetBSD Foundation, Inc.
@@ -43,11 +43,8 @@
#define RW_RECEIVE(rw) /* nothing */
#define RW_GIVE(rw) /* nothing */
-unsigned long _lock_cas(volatile unsigned long *,
- unsigned long, unsigned long);
-
#define RW_CAS(p, o, n) \
- (_lock_cas((volatile unsigned long *)(p), (o), (n)) == (o))
+ (atomic_cas_ulong((volatile unsigned long *)(p), (o), (n)) == (o))
#endif /* __RWLOCK_PRIVATE */
Home |
Main Index |
Thread Index |
Old Index