public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* hardcoded HZ in hub.c
@ 2000-11-17  9:54 Oleg Drokin
  2000-11-20 20:17 ` Johannes Erdfelt
  2000-11-21 10:13 ` David Woodhouse
  0 siblings, 2 replies; 11+ messages in thread
From: Oleg Drokin @ 2000-11-17  9:54 UTC (permalink / raw)
  To: jerdfelt; +Cc: linux-kernel

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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2000-11-22 12:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-17  9:54 hardcoded HZ in hub.c Oleg Drokin
2000-11-20 20:17 ` Johannes Erdfelt
2000-11-21 10:13 ` David Woodhouse
2000-11-21 17:56   ` Johannes Erdfelt
2000-11-21 19:13     ` David Woodhouse
2000-11-21 19:26       ` Johannes Erdfelt
2000-11-22 10:48       ` David Woodhouse
2000-11-22 11:22         ` Andrew Morton
2000-11-22 11:26         ` David Woodhouse
2000-11-22 11:34           ` Andrew Morton
2000-11-22 11:47           ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox