# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.426 -> 1.427
# drivers/usb/hub.c 1.15 -> 1.16
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/04/18 [EMAIL PROTECTED] 1.427
# [PATCH] Re: removing sleep_on in hub.c
#
# On Mon, Apr 08, 2002, Oliver Neukum <[EMAIL PROTECTED]> wrote:
# > using sleep_on is a race. The attached patch replaces it with the
# > new wait_event macro from sched.h. The patch is against the 2.5
# > from Greg.
#
# Greg, I've tested this against 2.4.19-pre6 as well and the attached
# patch is relative to that.
#
# Please apply.
#
# Thank Oliver!
#
# JE
# --------------------------------------------
#
diff -Nru a/drivers/usb/hub.c b/drivers/usb/hub.c
--- a/drivers/usb/hub.c Thu Apr 18 13:53:54 2002
+++ b/drivers/usb/hub.c Thu Apr 18 13:53:54 2002
@@ -912,7 +912,7 @@
/* Send me a signal to get me die (for debugging) */
do {
usb_hub_events();
- interruptible_sleep_on(&khubd_wait);
+ wait_event_interruptible(khubd_wait, !list_empty(&hub_event_list));
} while (!signal_pending(current));
dbg("usb_hub_thread exiting");
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel