All of lore.kernel.org
 help / color / mirror / Atom feed
From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM: sched_clock: allow sched_clock to be selected at runtime
Date: Fri, 12 Aug 2011 01:17:33 -0700	[thread overview]
Message-ID: <20110812081733.GQ1939@atomide.com> (raw)
In-Reply-To: <1313078531-25610-1-git-send-email-marc.zyngier@arm.com>

* Marc Zyngier <marc.zyngier@arm.com> [110811 08:29]:
> sched_clock() is yet another blocker on the road to the single
> image. This patch implements an idea by Russell King:
> 
> http://www.spinics.net/lists/linux-omap/msg49561.html
> 
> Instead of asking the platform to implement both sched_clock()
> itself and the rollover callback, simply register a read()
> function, and let the ARM code care about sched_clock() itself,
> the conversion to ns and the rollover. sched_clock() uses
> this read() function as an indirection to the platform code.
> 
> This allow some simplifications and possibly some footprint gain
> when multiple platforms are compiled in. Among the drawbacks,
> the removal of the *_fixed_sched_clock optimization which could
> negatively impact some platforms (sa1100, tegra, versatile
> and omap).

Nice! We were already struggling supporting various timers
in a single binary for omap for sched_clock.
 
> Tested on 11MPCore, OMAP4 and Tegra.

Will test on various omaps soonish.

Tony

  reply	other threads:[~2011-08-12  8:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-11 16:02 [PATCH v2] ARM: sched_clock: allow sched_clock to be selected at runtime Marc Zyngier
2011-08-12  8:17 ` Tony Lindgren [this message]
2011-08-12 12:21 ` Jamie Iles
2011-08-12 12:24   ` Marc Zyngier
2011-08-16  0:00 ` Nicolas Pitre
2011-08-30 13:56   ` Marc Zyngier
2011-08-30 16:18   ` Russell King - ARM Linux

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=20110812081733.GQ1939@atomide.com \
    --to=tony@atomide.com \
    --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.