From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: How to define CLOCK_TICK_RATE in linux kernel 2.6.xx?
Date: Tue, 24 Aug 2010 15:21:23 +0200 [thread overview]
Message-ID: <201008241521.23459.arnd@arndb.de> (raw)
In-Reply-To: <AANLkTinbttBSuTHqFN5X75kqCkDGXvGXb-c-Yv9xdWXw@mail.gmail.com>
On Tuesday 24 August 2010, Eric Miao wrote:
> On Tue, Aug 24, 2010 at 5:20 PM, David Yang <david.yangshuai@gmail.com> wrote:
> > Hello all,
> >
> > We have recently started to port linux 2.6.33 to a arm machine which be
> > cortex-a9 mpcore, and we found that need define CLOCK_TICK_RATE
> > (arch/arm/mach_xxx/include/mach/timex.h) to a value.
> >
>
> It's obsoleted. Give it a fake value and go.
I would call it *almost* obsolete. Platforms that don't have their
own clocksource implementation still use it for calculating the
exact value of their time slices, and the console beep in the TTY layer
defines its pitch through this frequency.
The latter is of course a bug, it should use 1193182 Hz, independent
of CLOCK_TICK_RATE, since the frequency is now unfortunately part
of the ABI.
Arnd
next prev parent reply other threads:[~2010-08-24 13:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-24 9:20 How to define CLOCK_TICK_RATE in linux kernel 2.6.xx? David Yang
2010-08-24 10:08 ` Eric Miao
2010-08-24 13:21 ` Arnd Bergmann [this message]
2010-08-24 13:53 ` [PATCH v2] input: use PIT_TICK_RATE in vt beep ioctl Arnd Bergmann
2010-08-24 13:53 ` Arnd Bergmann
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=201008241521.23459.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.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.