lkml.org 
[lkml]   [1996]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectPentium microtime & SMP: A bug?
If I understand SMP in Linux right (I have only a single-processor 
board), each processor can handle kernel requests (that is serve
them). The fast timing routine for the Pentium uses the cycle counter
in the processor (in the current one). Now I assume that both
processors do not start with the same cycle counter; that way the
clock offset will jump depending which processor's cycle count is
read. (I don't know if it's possible to reset a single processor)

The solution (if the problem exists) seems to be to have a cycle
counter per processor (#ifdef SMP) instead of a single one.

Ulrich


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:1.560 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site