[PATCH v3 4/4] iop: implement sched_clock()
linus.ml.walleij at gmail.com
Fri Oct 23 13:12:22 EDT 2009
2009/10/23 Mikael Pettersson <mikpe at it.uu.se>:
> Actually I do have an idea what it might be. sched_clock() is
> "registered" (if you can call it that) at link-time simply by
> virtue of being defined, while the other machinery it needs
> (clocksource) is enabled at boot-time at some semi-unknown point.
> So there's an early boot-time window where calls to sched_clock()
> may occur but won't work.
Check the OMAP code arch/arm/plat-omap/common.c
See how they have a dummy clocksource omap_32k_read_dummy()
that get used until the clocksource is set up in
omap_init_clocksource_32k(). This approach should work I guess?
More information about the linux-arm-kernel