Thread (7 messages) 7 messages, 5 authors, 2011-08-30
STALE5390d

[PATCH v2] ARM: sched_clock: allow sched_clock to be selected at runtime

From: Marc Zyngier <hidden>
Date: 2011-08-12 12:24:19

On 12/08/11 13:21, Jamie Iles wrote:
On Thu, Aug 11, 2011 at 05:02:11PM +0100, Marc Zyngier wrote:
quoted
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).

Tested on 11MPCore, OMAP4 and Tegra.

Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: Krzysztof Halasa <khc@pm.waw.pl>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Eric Miao <redacted>
Cc: Colin Cross <redacted>
Cc: Erik Gilling <redacted>
Cc: Olof Johansson <redacted>
Cc: Linus Walleij <redacted>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Alessandro Rubini <redacted>
Cc: STEricsson <redacted>
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Kukjin Kim <redacted>
Cc: Jamie Iles <redacted>
Tested-by: Jamie Iles <redacted>
Thanks Jamie.

	M.
-- 
Jazz is not dead. It just smells funny...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help