linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oleg Drokin <green@ixcelerator.com>
To: jerdfelt@valinux.com
Cc: linux-kernel@vger.kernel.org
Subject: hardcoded HZ in hub.c
Date: Fri, 17 Nov 2000 12:54:41 +0300	[thread overview]
Message-ID: <20001117125441.A28208@iXcelerator.com> (raw)

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/

             reply	other threads:[~2000-11-17 10:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-17  9:54 Oleg Drokin [this message]
2000-11-20 20:17 ` hardcoded HZ in hub.c 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20001117125441.A28208@iXcelerator.com \
    --to=green@ixcelerator.com \
    --cc=jerdfelt@valinux.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).