Re: Sched_clock() usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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

--
regards,

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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux