On Thu, Nov 6, 2014 at 10:56 PM, Vignesh Radhakrishnan < [email protected]> wrote:
> Hi, > > Is there any place where sched_clock() usage might not be safe. > Like lets say early in the boot during driver probe ? > > Or any things that i need to ensure before calling sched_clokc() ? > > > > Thanks and regards, > Vignesh Radhakrishnan > > -- > http://vigneshradhakrishnan.blogspot.com/ > > _______________________________________________ > Kernelnewbies mailing list > [email protected] > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > Quite likely, you can't call sched_clock inside interrupt handler or similar place where interrupts are disabled or atomicity must be maintained. CMIIW -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
_______________________________________________ Kernelnewbies mailing list [email protected] http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
