All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] SEC() and MSEC() and USEC() macros
Date: Mon, 19 Mar 2007 16:04:24 +0000	[thread overview]
Message-ID: <200703191704.24553.arnd@arndb.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0703191148570.12453@CPE00045a9c397f-CM001225dbafb6>

On Monday 19 March 2007, Robert P. J. Day wrote:
>   no, it's not a serious proposal but, boy, wouldn't it have made the
> code more readable if someone had defined macros/inline functions like
> sec(), msec() and usec() rather than cluttering up the code with
> things like "22*HZ/10" and "30*HZ/100".
> 
>   just thinking out loud, don't take it seriously.

There is recurring discussion about making sure that for every interface
that takes a jiffie argument, we have a replacement that takes a proper
unit of time (ktime_t, clock_t, timespec, nanoseconds, microseconds, ...).
In short, we have too many ways to express time, and the jiffies are the
least useful one.

	Arnd <><

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

  reply	other threads:[~2007-03-19 16:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-19 15:51 [KJ] SEC() and MSEC() and USEC() macros Robert P. J. Day
2007-03-19 16:04 ` Arnd Bergmann [this message]
2007-03-19 16:32 ` Nishanth Aravamudan

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=200703191704.24553.arnd@arndb.de \
    --to=arnd@arndb.de \
    --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.