Messages in this thread Patch in this message |  | | Date | Fri, 17 Nov 2000 12:54:41 +0300 | From | Oleg Drokin <> | Subject | hardcoded HZ in hub.c |
| |
Hello!
hub.c in 2.4.0-test10 and above contains hardcoded HZ value, which is wrong. Here is the patch:
--- drivers/usb/hub.c.orig Fri Nov 17 12:51:34 2000 +++ drivers/usb/hub.c Fri Nov 17 12:51:59 2000 @@ -813,7 +813,7 @@ ret = kill_proc(khubd_pid, SIGTERM, 1); if (!ret) { /* Wait 10 seconds */ - int count = 10 * 100; + int count = 10 * HZ; while (khubd_running && --count) { current->state = TASK_INTERRUPTIBLE; Bye, Oleg - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |