mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bart Trojanowski <bart@jukie.net>
To: Thiago Rondon <maluco@mileniumnet.com.br>
Cc: lkml <linux-kernel@vger.kernel.org>,
	"Michael A. Griffith" <grif@acm.org>
Subject: Re: [QUESTION] init/main.c
Date: Fri, 13 Apr 2001 19:40:44 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.33.0104131935100.3652-100000@localhost> (raw)
In-Reply-To: <Pine.LNX.4.21.0104131916150.11797-100000@freak.mileniumnet.com.br>


jiffies is updated by a timer interrupt once every 1/HZ seconds (HZ==100
for i386).

The code intents to start running at the time right after jiffies was
incremented to improve the correctness of the delay calibration loop.

The reason why jiffies is read later is to get the value after the
change... if the interrupts are sporadic then the increment could be 2 ...
although not very likely.

Bart.

On Fri, 13 Apr 2001, Thiago Rondon wrote:

>
> At function calibrate_delay(void) in init/main.c,
> I dont understand this code:
>
> <<EOF
>                 /* wait for "start of" clock tick */
>                 ticks = jiffies;
>                 while (ticks == jiffies)
>                         /* nothing */;
>                 /* Go .. */
>
>                 ticks = jiffies;
> EOF
>
> ticks = jiffies; while (ticks == jiffies); ticks = jiffies; ?
>
> Thanks in advanced,
> -Thiago Rondon
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

-- 
	WebSig: http://www.jukie.net/~bart/sig/


  reply	other threads:[~2001-04-13 23:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-13 23:21 Thiago Rondon
2001-04-13 23:40 ` Bart Trojanowski [this message]
2001-04-14  5:44 ` Jonathan Morton

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=Pine.LNX.4.33.0104131935100.3652-100000@localhost \
    --to=bart@jukie.net \
    --cc=grif@acm.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maluco@mileniumnet.com.br \
    /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

all inboxes | Powered by JetHome®