Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm Clean up sem...
details: https://anonhg.NetBSD.org/src/rev/1145114b2d38
branches: trunk
changeset: 790123:1145114b2d38
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Sep 20 09:05:53 2013 +0000
description:
Clean up semaphore initialisation.
diffstat:
sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diffs (23 lines):
diff -r 019d0d7786a0 -r 1145114b2d38 sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c
--- a/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c Fri Sep 20 06:43:57 2013 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c Fri Sep 20 09:05:53 2013 +0000
@@ -384,7 +384,7 @@
event->armed = 0;
/* Don't clear the 'fired' flag because it may already have been set
** by the other side. */
- event->event->value = 0;
+ _sema_init(event->event, 0);
}
static inline void
@@ -2377,10 +2377,6 @@
_sema_init(&state->connect, 0);
lmutex_init(&state->mutex);
- _sema_init(&state->trigger_event, 0);
- _sema_init(&state->recycle_event, 0);
- _sema_init(&state->sync_trigger_event, 0);
- _sema_init(&state->sync_release_event, 0);
lmutex_init(&state->slot_mutex);
lmutex_init(&state->recycle_mutex);
Home |
Main Index |
Thread Index |
Old Index