|
From: Mattias A. <mat...@us...> - 2001-07-18 12:42:31
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
hci.c 1.166 1.167=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* added 10 ms sleep in hci emulator when running usermode stack
to avoid race problems (due to lack of real wait queues)
The diff of the modified file(s):
--- hci.c 2001/07/17 16:04:10 1.166
+++ hci.c 2001/07/18 12:42:30 1.167
@@ -3541,6 +3541,11 @@
void=20
hci_emulator(u8 *data, u32 len)
{=09
+#ifndef __KERNEL__
+ /* Add a sleep here to avoid race problems when running=20
+ usermode stack (using busy wait 'wait queues') */
+ usleep(10000);
+#endif
if (*data =3D=3D SCO_PKT) {
bt_write_lower_driver(data, len);
hci_ctrl.hc_buf.sco_num++;
|