From: Catalin Marinas <catalin.marinas@arm.com>
To: John Stultz <john.stultz@linaro.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH] Allow CLOCK_TICK_RATE to be undefined
Date: Thu, 19 Jul 2012 10:22:39 +0100 [thread overview]
Message-ID: <20120719092239.GB28942@arm.com> (raw)
In-Reply-To: <50074287.3080802@linaro.org>
On Thu, Jul 19, 2012 at 12:11:03AM +0100, John Stultz wrote:
> On 07/18/2012 03:51 PM, Andrew Morton wrote:
> > On Tue, 17 Jul 2012 17:41:40 +0100
> > Catalin Marinas <catalin.marinas@arm.com> wrote:
> >
> >> This patch allows an architecture to not define CLOCK_TICK_RATE, in
> >> which case ACTHZ defaults to (HZ << 8).
> > No reason was given for this change.
> >
> > So those people who are wondering "why don't you just define
> > CLOCK_TICK_RATE" are made all sad.
>
> I just queued this patch with a revised commit message:
>
> jiffies: Allow CLOCK_TICK_RATE to be undefined
>
> CLOCK_TICK_RATE is a legacy constant that defines the timer
> device's granularity. On hardware with particularly coarse
> granularity, this constant is used to reduce accumulated
> time error when using jiffies as a clocksource, by calculating
> the hardware's actual tick length rather then just assuming
> it is 1sec/HZ.
>
> However, for the most part this is unnecessary, as most modern
> systems don't use jiffies for their clocksource, and their
> tick device is sufficiently fine grained to avoid major error.
>
> Thus, this patch allows an architecture to not define
> CLOCK_TICK_RATE, in which case ACTHZ defaults to (HZ << 8).
>
>
> Let me know if you'd like to see further improvements.
Looks good. Thanks for picking this up.
--
Catalin
prev parent reply other threads:[~2012-07-19 9:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-17 16:41 [PATCH] Allow CLOCK_TICK_RATE to be undefined Catalin Marinas
2012-07-18 22:51 ` Andrew Morton
2012-07-18 23:11 ` John Stultz
2012-07-19 9:22 ` Catalin Marinas [this message]
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=20120719092239.GB28942@arm.com \
--to=catalin.marinas@arm.com \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@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.