Re: Can we rely on RDTSC

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

 



On Thu, 2006-08-17 at 21:09 +0530, Tharindu Rukshan Bamunuarachchi
wrote:
> Does Linux syncrhonize tsc (timer stam counter) values in-beetwen SMP cores?

at boot it tries.
> 
> If I read tsc value from different cores, will I get same value or
> dfferent value??

there are many reasons why tsc's can end up being desynchronized over
time, and as such you really shouldn't depend on that in generic code.
Only the architecture specific time keeping code knows if it's reliable
or not... anything else shouldn't depend on this (or even use tsc)

Greetings,
   Arjan van de Ven

-- 
if you want to mail me at work (you don't), use arjan (at) linux.intel.com


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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