From: Johannes Weiner <hannes@cmpxchg.org>
To: "Peter T. Breuer" <ptb@inv.it.uc3m.es>
Cc: linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: time_is_after_jiffies misnomer
Date: Tue, 16 Dec 2008 15:46:08 +0100 [thread overview]
Message-ID: <20081216144608.GA19675@cmpxchg.org> (raw)
In-Reply-To: <200812161131.mBGBVfV17064@inv.it.uc3m.es>
On Tue, Dec 16, 2008 at 12:31:41PM +0100, Peter T. Breuer wrote:
>
> I thought at first that
>
> time_is_after_jiffies(foo)
>
> meant that the current time is later than foo jiffies.
'foo jiffies'?
It behaves like all the other time_(after|before) macros. "Compare a
given time T against some other time X".
T is always the first argument to these macros, it's never the current
time. This is consistent.
And jiffies, the X here, is a well-known global variable. :)
The banner comment above the macro group should have clarified the
misunderstanding, btw.
Hannes
next prev parent reply other threads:[~2008-12-16 14:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-16 11:31 time_is_after_jiffies misnomer Peter T. Breuer
2008-12-16 14:46 ` Johannes Weiner [this message]
2008-12-16 15:17 ` Peter T. Breuer
2008-12-16 16:18 ` Andreas Schwab
2008-12-16 16:32 ` Peter T. Breuer
2008-12-16 19:29 ` Chris Friesen
2008-12-16 20:33 ` Johannes Weiner
2008-12-18 7:38 ` Pavel Machek
-- strict thread matches above, loose matches on Subject: below --
2008-12-16 16:04 Peter T. Breuer
2008-12-16 16:13 ` Pekka Enberg
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=20081216144608.GA19675@cmpxchg.org \
--to=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ptb@inv.it.uc3m.es \
/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