Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Call cv_broadcast with interlock held as per con...
details: https://anonhg.NetBSD.org/src/rev/efdb4b17d182
branches: trunk
changeset: 349804:efdb4b17d182
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Dec 24 11:51:33 2016 +0000
description:
Call cv_broadcast with interlock held as per condvar(9)
diffstat:
sys/dev/usb/if_athn_usb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 700751b28a9f -r efdb4b17d182 sys/dev/usb/if_athn_usb.c
--- a/sys/dev/usb/if_athn_usb.c Sat Dec 24 09:19:23 2016 +0000
+++ b/sys/dev/usb/if_athn_usb.c Sat Dec 24 11:51:33 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_athn_usb.c,v 1.19 2016/12/17 15:27:26 skrll Exp $ */
+/* $NetBSD: if_athn_usb.c,v 1.20 2016/12/24 11:51:33 skrll Exp $ */
/* $OpenBSD: if_athn_usb.c,v 1.12 2013/01/14 09:50:31 jsing Exp $ */
/*-
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_athn_usb.c,v 1.19 2016/12/17 15:27:26 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_athn_usb.c,v 1.20 2016/12/24 11:51:33 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -826,8 +826,8 @@
ring->queued--;
ring->next = (ring->next + 1) % ATHN_USB_HOST_CMD_RING_COUNT;
}
+ cv_broadcast(&usc->usc_task_cv);
mutex_spin_exit(&usc->usc_task_mtx);
- cv_broadcast(&usc->usc_task_cv);
}
Static void
Home |
Main Index |
Thread Index |
Old Index