All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Aravamudan <nacc@us.ibm.com>
To: kernel-janitors@vger.kernel.org
Subject: [Kernel-janitors] saa7146_i2c.c::my_wait() (msleep)
Date: Thu, 08 Jul 2004 23:08:05 +0000	[thread overview]
Message-ID: <40EDD3D5.70805@us.ibm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 757 bytes --]

Here is the first (well, really the second after DVB) of a sequence of 
issues with my msleep() conversion process:

While trying to converte /drivers/media/common/saa7146_i2c.c::my_wait() 
to msleep(), I'm kind of stumped by the conversion being done on the 
input parameter (called ms, but I'm not sure if that means it is 
actually in milliseconds):

	((((ms + 10) / 10) * HZ) / 1000)

This seems to lead to some weird conversions...

Is that right? What is really desired there? Basically I want to know 
what I should send in to msleep, i.e. the corresponding value in 
milliseconds. Looking through the code, my_wait() is only called with 
SAA_1746_DELAY (5), 1 and 10. Are those the corresponding values in ms?

Any help would be appreciated.

-Nish

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

                 reply	other threads:[~2004-07-08 23:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=40EDD3D5.70805@us.ibm.com \
    --to=nacc@us.ibm.com \
    --cc=kernel-janitors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.