On Thu, Nov 6, 2014 at 10:56 PM, Vignesh Radhakrishnan <vignesh1192@xxxxxxxxx> 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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
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
CMIIW
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies