linux-kernel-test/arch/arm/mach-omap1
Marc Zyngier 2f0778afac ARM: 7205/2: sched_clock: allow sched_clock to be selected at runtime
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.
If the platform doesn't provide a read(), the code falls back
to the jiffy counter (just like the default sched_clock).

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: Eric Miao <eric.y.miao@gmail.com>
Cc: Colin Cross <ccross@android.com>
Cc: Erik Gilling <konkers@android.com>
Cc: Olof Johansson <olof@lixom.net>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Alessandro Rubini <rubini@unipv.it>
Cc: STEricsson <STEricsson_nomadik_linux@list.st.com>
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Ben Dooks <ben-linux@fluff.org>
Tested-by: Jamie Iles <jamie@jamieiles.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Tested-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Krzysztof Halasa <khc@pm.waw.pl>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-12-18 23:00:26 +00:00
..
include/mach ARM: big removal of now unused vmalloc.h files 2011-11-26 19:21:29 -05:00
ams-delta-fiq-handler.S Fix common misspellings 2011-03-31 11:26:23 -03:00
ams-delta-fiq.c
board-ams-delta.c Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into devel-stable 2011-12-05 23:20:17 +00:00
board-fsample.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-generic.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-h2-mmc.c ARM: gpio: convert includes of mach/gpio.h and asm/gpio.h to linux/gpio.h 2011-08-08 14:27:41 +01:00
board-h2.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-h2.h
board-h3-mmc.c ARM: gpio: convert includes of mach/gpio.h and asm/gpio.h to linux/gpio.h 2011-08-08 14:27:41 +01:00
board-h3.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-h3.h
board-htcherald.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-innovator.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-nokia770.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-osk.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-palmte.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-palmtt.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-palmz71.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-perseus2.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-sx1-mmc.c ARM: gpio: convert includes of mach/gpio.h and asm/gpio.h to linux/gpio.h 2011-08-08 14:27:41 +01:00
board-sx1.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
board-voiceblue.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
clock_data.c ARM: OMAP: Fix reprogramming of dpll1 rate 2011-11-11 10:15:11 -08:00
clock.c
clock.h ARM: OMAP: Fix reprogramming of dpll1 rate 2011-11-11 10:15:11 -08:00
common.h ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
devices.c Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into devel-stable 2011-12-05 23:20:17 +00:00
dma.c arch/arm/mach-omap1/dma.c: Invert calls to platform_device_put and platform_device_del 2011-06-01 02:25:04 -07:00
flash.c ARM: 6910/1: MTD: physmap: let set_vpp() pass a platform_device instead of a map_info 2011-05-20 22:27:34 +01:00
fpga.c ARM: gpio: convert includes of mach/gpio.h and asm/gpio.h to linux/gpio.h 2011-08-08 14:27:41 +01:00
gpio7xx.c Merge branch 'gpio/next' of git://git.secretlab.ca/git/linux-2.6 2011-07-22 14:50:57 -07:00
gpio15xx.c Merge branch 'gpio/next' of git://git.secretlab.ca/git/linux-2.6 2011-07-22 14:50:57 -07:00
gpio16xx.c Merge branch 'gpio/next' of git://git.secretlab.ca/git/linux-2.6 2011-07-22 14:50:57 -07:00
i2c.c
id.c
io.c ARM: plat-omap: remove arch specific special handling for ioremap 2011-11-18 13:51:02 -05:00
irq.c ARM: gpio: convert includes of mach/gpio.h and asm/gpio.h to linux/gpio.h 2011-08-08 14:27:41 +01:00
Kconfig ARM: OMAP: Fix reprogramming of dpll1 rate 2011-11-11 10:15:11 -08:00
lcd_dma.c
leds-h2p2-debug.c ARM: gpio: convert includes of mach/gpio.h and asm/gpio.h to linux/gpio.h 2011-08-08 14:27:41 +01:00
leds-innovator.c
leds-osk.c ARM: gpio: convert includes of mach/gpio.h and asm/gpio.h to linux/gpio.h 2011-08-08 14:27:41 +01:00
leds.c ARM: gpio: convert includes of mach/gpio.h and asm/gpio.h to linux/gpio.h 2011-08-08 14:27:41 +01:00
leds.h
mailbox.c arm: fix implicit module.h users by adding it to arch/arm as required. 2011-10-31 19:30:50 -04:00
Makefile ARM: OMAP1: dmtimer: conversion to platform devices 2011-09-21 15:50:31 -07:00
Makefile.boot ARM: 7022/1: allow to detect conflicting zreladdrs 2011-10-17 09:12:40 +01:00
mcbsp.c ARM: OMAP: mcbsp: Move address definitions to arch/arm/mach-omap1/mcbsp.c 2011-09-26 17:48:51 -07:00
mux.c
opp_data.c
opp.h
pm_bus.c PM: Move clock-related definitions and headers to separate file 2011-08-25 15:34:19 +02:00
pm.c ARM: OMAP1: Fix warnings about enabling 32 KiHz timer 2011-11-04 18:07:15 -07:00
pm.h
reset.c
serial.c ARM: gpio: convert includes of mach/gpio.h and asm/gpio.h to linux/gpio.h 2011-08-08 14:27:41 +01:00
sleep.S
sram.S
time.c ARM: 7205/2: sched_clock: allow sched_clock to be selected at runtime 2011-12-18 23:00:26 +00:00
timer32k.c ARM: 7159/1: OMAP: Introduce local common.h files 2011-11-17 17:09:30 +00:00
timer.c ARM: OMAP1: dmtimer: conversion to platform devices 2011-09-21 15:50:31 -07:00
usb.c