Re: sched_clock - microblaze

Michal Simek
2010-04-16T09:11:53Z

Arnd Bergmann wrote:
> On Friday 16 April 2010, Michal Simek wrote:
>> Why is sched_clock called in init_idle? Do you get any non zero value on
>> any ARCH?
>
> Yes, some architectures return a real-time value here that starts before boot.
> Also, when the clock starts at boot time, there can be a significant time
> spent in the firmware and early kernel code before we get to init_idle.

ok. I will return 0 before timer initialization.

Thanks for explanation,
Michal

>
> Arnd

--
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663