summaryrefslogtreecommitdiff
path: root/sys/dev/sun
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2007-02-09 21:55:00 +0000
committerad <ad@NetBSD.org>2007-02-09 21:55:00 +0000
commitb07ec3fc388a5aeae51e8871aa89eefea3ce1e53 (patch)
treec93d3b23a29f98ac0e26c9d43afb509219d0ea42 /sys/dev/sun
parent5c1aad3ad0b9d2403784bd52128e8e8399e22254 (diff)
Merge newlock2 to head.
Diffstat (limited to 'sys/dev/sun')
-rw-r--r--sys/dev/sun/event_var.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/sun/event_var.h b/sys/dev/sun/event_var.h
index 57899afc306..49dde963e16 100644
--- a/sys/dev/sun/event_var.h
+++ b/sys/dev/sun/event_var.h
@@ -1,4 +1,4 @@
-/* $NetBSD: event_var.h,v 1.9 2005/12/11 12:23:56 christos Exp $ */
+/* $NetBSD: event_var.h,v 1.10 2007/02/09 21:55:29 ad Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -68,8 +68,11 @@ struct evvar {
(ev)->ev_wanted = 0; \
wakeup((caddr_t)(ev)); \
} \
- if ((ev)->ev_async) \
+ if ((ev)->ev_async) { \
+ mutex_enter(&proclist_mutex); \
psignal((ev)->ev_io, SIGIO); \
+ mutex_exit(&proclist_mutex); \
+ } \
}
void ev_init(struct evvar *);