forked from luck/tmp_suning_uos_patched
2f0778afac
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> |
||
---|---|---|
.. | ||
include/mach | ||
am200epd.c | ||
am300epd.c | ||
balloon3.c | ||
capc7117.c | ||
clock-pxa2xx.c | ||
clock-pxa3xx.c | ||
clock.c | ||
clock.h | ||
cm-x2xx-pci.c | ||
cm-x2xx-pci.h | ||
cm-x2xx.c | ||
cm-x255.c | ||
cm-x270.c | ||
cm-x300.c | ||
colibri-evalboard.c | ||
colibri-pxa3xx.c | ||
colibri-pxa270-income.c | ||
colibri-pxa270.c | ||
colibri-pxa300.c | ||
colibri-pxa320.c | ||
corgi_pm.c | ||
corgi.c | ||
cpufreq-pxa2xx.c | ||
cpufreq-pxa3xx.c | ||
csb701.c | ||
csb726.c | ||
devices.c | ||
devices.h | ||
em-x270.c | ||
eseries.c | ||
eseries.h | ||
ezx.c | ||
generic.c | ||
generic.h | ||
gumstix.c | ||
h5000.c | ||
himalaya.c | ||
hx4700.c | ||
icontrol.c | ||
idp.c | ||
irq.c | ||
Kconfig | ||
leds-idp.c | ||
leds-lubbock.c | ||
leds-mainstone.c | ||
leds.c | ||
leds.h | ||
littleton.c | ||
lpd270.c | ||
lubbock.c | ||
magician.c | ||
mainstone.c | ||
Makefile | ||
Makefile.boot | ||
mfp-pxa2xx.c | ||
mfp-pxa3xx.c | ||
mioa701_bootresume.S | ||
mioa701.c | ||
mp900.c | ||
mxm8x10.c | ||
palm27x.c | ||
palmld.c | ||
palmt5.c | ||
palmtc.c | ||
palmte2.c | ||
palmtreo.c | ||
palmtx.c | ||
palmz72.c | ||
pcm027.c | ||
pcm990-baseboard.c | ||
pm.c | ||
poodle.c | ||
pxa2xx.c | ||
pxa3xx-ulpi.c | ||
pxa3xx.c | ||
pxa25x.c | ||
pxa27x.c | ||
pxa95x.c | ||
pxa300.c | ||
pxa320.c | ||
pxa930.c | ||
raumfeld.c | ||
reset.c | ||
saar.c | ||
saarb.c | ||
sharpsl_pm.c | ||
sleep.S | ||
smemc.c | ||
spitz_pm.c | ||
spitz.c | ||
standby.S | ||
stargate2.c | ||
tavorevb3.c | ||
tavorevb.c | ||
time.c | ||
tosa-bt.c | ||
tosa.c | ||
trizeps4.c | ||
viper.c | ||
vpac270.c | ||
xcep.c | ||
z2.c | ||
zeus.c | ||
zylonite_pxa300.c | ||
zylonite_pxa320.c | ||
zylonite.c |