public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Odd value for I2C_TIMEOUT in fsl_i2c.c
Date: Fri, 04 Sep 2009 14:28:01 -0500	[thread overview]
Message-ID: <4AA16A41.30107@freescale.com> (raw)
In-Reply-To: <20090904192320.34250832E8DE@gemini.denx.de>

Wolfgang Denk wrote:
> Dear Scott Wood,
> 
> In message <20090904183437.GA20066@b07421-ec1.am.freescale.net> you wrote:
>>> milliseconds, i. e. a time. "(CONFIG_SYS_HZ / 4)" is a frequency,
>>> i. e. not a time, but the inverse of it.
>>>
>>> It is plain wront to write "250 per second" when you mean "250 milliseconds"
>> It is not a frequency, it is a number of ticks.  This is a very common
>> idiom.
> 
> CONFIG_SYS_HZ _is_ a frequenzy. It is the number of ticks _per_
> _second_. That is the _inverse_ of a time unit, not a time unit.

Yes, CONFIG_SYS_HZ is a frequency.  And when you multiply a _frequency_, 
which is _ticks_ per _second_, by a number _seconds_ (in this case, 1/4 
sec), you get a number of _ticks_.

-Scott

  reply	other threads:[~2009-09-04 19:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-03 15:22 [U-Boot] Odd value for I2C_TIMEOUT in fsl_i2c.c Timur Tabi
2009-09-04  7:16 ` Heiko Schocher
2009-09-04  9:25   ` Wolfgang Denk
2009-09-04 14:09     ` Timur Tabi
2009-09-04 15:01       ` Wolfgang Denk
2009-09-04 15:12         ` Timur Tabi
2009-09-04 15:28           ` Peter Tyser
2009-09-04 15:30             ` Timur Tabi
2009-09-04 16:04               ` Peter Tyser
2009-09-04 18:30               ` Wolfgang Denk
2009-09-04 18:39                 ` Timur Tabi
2009-09-04 19:28                   ` Wolfgang Denk
2009-09-04 18:28             ` Wolfgang Denk
2009-09-04 15:29           ` Wolfgang Denk
2009-09-04 18:34             ` Scott Wood
2009-09-04 19:23               ` Wolfgang Denk
2009-09-04 19:28                 ` Scott Wood [this message]
2009-09-04  8:31 ` Wolfgang Denk
2009-09-04 18:36   ` Scott Wood
2009-09-04 19:27     ` Wolfgang Denk

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=4AA16A41.30107@freescale.com \
    --to=scottwood@freescale.com \
    --cc=u-boot@lists.denx.de \
    /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