Sched_clock() usage
Mulyadi Santosa
mulyadi.santosa at gmail.com
Fri Nov 14 01:48:26 EST 2014
On Thu, Nov 6, 2014 at 10:56 PM, Vignesh Radhakrishnan <
vignesh1192 at gmail.com> 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
> Kernelnewbies at kernelnewbies.org
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141114/dfa7034b/attachment.html
More information about the Kernelnewbies
mailing list