From: Thomas Gleixner <tglx@linutronix.de>
To: John Stultz <john.stultz@linaro.org>
Cc: "Sören Brinkmann" <soren.brinkmann@xilinx.com>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
"Michal Simek" <michal.simek@xilinx.com>
Subject: Re: clocksource with changing frequency?
Date: Fri, 21 Jun 2013 10:12:37 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.02.1306211010000.4013@ionos.tec.linutronix.de> (raw)
In-Reply-To: <51C39B1A.5070902@linaro.org>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1029 bytes --]
On Thu, 20 Jun 2013, John Stultz wrote:
> On 06/20/2013 05:01 PM, Sören Brinkmann wrote:
> > Hi all,
> >
> > I have a question/problem with a clocksource whose input frequency can
> > change.
>
> That behavior isn't supported by the clocksource core. We expect frequency
> changing clocksources to be detected and disqualified (as we do w/ freq
> changing TSCs on older laptops).
>
>
> > On Zynq we use the cadece_ttc timer as clocksource. Its input clock is
> > tightly coupled to the CPU clock. I.e. it changes when cpufreq scales
> > the CPU clocks.
> > To compensate this, I added a clock notifier doing this on a frequency
> > change:
> > clocksource_unregister(&ttccs->cs);
> > clocksource_register_hz(&ttccs->cs, ndata->new_rate / PRESCALE);
>
> This will definitely have problems if this is the only high-res capable
> clocksource.
And starting with 3.11 it will be not longer possible to unregister
the only high-res capable clocksource exactly to prevent the wreckage
you are talking about :)
Thanks,
tglx
next prev parent reply other threads:[~2013-06-21 8:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 0:01 Sören Brinkmann
2013-06-21 0:15 ` John Stultz
2013-06-21 8:12 ` Thomas Gleixner [this message]
2013-06-21 22:00 ` Sören Brinkmann
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=alpine.DEB.2.02.1306211010000.4013@ionos.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=john.stultz@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=soren.brinkmann@xilinx.com \
/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®