archive mirror
 help / color / mirror / Atom feed
From: Zwane Mwaikambo <>
To: Carsten Otto <>
Subject: Re: e1000 statistics timer
Date: Sat, 2 Aug 2003 16:57:00 -0400 (EDT)	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Sat, 2 Aug 2003, Carsten Otto wrote:

> "mod_timer(&adapter->watchdog_timer, jiffies + 2* HZ);"

> "mod_timer(&adapter->watchdog_timer, HZ);"

After HZ jiffies have passed you're adding a timer to trigger in the past.

> Now my questions:
> 1) Is my implementation right? It works...

That is often the case with lots of software, it may be wrong but by 
$DEITY's gracious hand, still 'works'

> 2) Can I change that delay to 1 sec withhout "hurting someone"?

Dunno, try jiffies + HZ, they're just statistics

> 3) What are these jiffies? Mathematically they are about 20 :>

jiffies is the global variable which stores how many timer ticks have 
occured since system startup.

> 4) There are other timers in the code, that use "jiffies + 2 * HZ" too. 
> Should they  be changed, too?

Nooo!! =)

> Please answer to, because I don't get the whole LKML.

Have fun,


  reply	other threads:[~2003-08-02 21:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-02 19:45 e1000 statistics timer Carsten Otto
2003-08-02 20:57 ` Zwane Mwaikambo [this message]
2003-08-02 23:14 ` Marc-Christian Petersen

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:

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

  git send-email \ \ \ \ \

* 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).