mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Oleksij Rempel <linux@rempel-privat.de>
Cc: linux-kernel@vger.kernel.org, Daniel Lezcano <daniel.lezcano@linaro.org>
Subject: Re: Writing clocksource driver, tips?
Date: Mon, 1 Sep 2014 10:35:16 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.10.1409011029020.3333@nanos> (raw)
In-Reply-To: <54035154.6080306@rempel-privat.de>

On Sun, 31 Aug 2014, Oleksij Rempel wrote:
> - 1 timer can be used for clocksource other as  clock_event_device, how
> can i use other 2 timers on same controller. and how can i use other 3
> controllers?

All you need is two.

One for the clocksource (free running counter):

    100MHz is fine, it gives the timekeeping code nice
    granularity. There is no need for a wrap around interrupt. The
    core code knows how to deal with it.

The second one is for the clock event device

    Avoid a match timer if possible, it's a pain in the neck. Either a
    autoreloading timer for the periodic mode or a simple downcounting
    one for one shot mode is good enough.

The other timers are not of any value for Linux. Just leave them
alone.

Thanks,

	tglx

      reply	other threads:[~2014-09-01  8:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-31 16:46 Oleksij Rempel
2014-09-01  8:35 ` Thomas Gleixner [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=alpine.DEB.2.10.1409011029020.3333@nanos \
    --to=tglx@linutronix.de \
    --cc=daniel.lezcano@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rempel-privat.de \
    /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®