lkml.org 
[lkml]   [2009]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH RFC] sched: add notifier for process migration
From
Date
On Sat, 2009-10-10 at 11:05 +0200, Avi Kivity wrote:
> On 10/10/2009 09:14 AM, Peter Zijlstra wrote:
> > Why not do something like:
> >
> > struct {
> > u64 tsc;
> > u32 aux;
> > } tscp = rdtscp();
> >
> > local_time_info = timeinfo[tscp_cpu(tscp)];
> >
> > /* yay, consistent tsc and timeinfo !! */
> >
>
> First, not all processors support rdtscp.

Is that a real issue? If its not supported by the early hardware virt
chips, tough luck, they sucked anyway :-)

> Second, timeinfo might change
> at any time due to cpu frequency changes or the entire cpu being
> migrated, so we need to loop in any case.

Sure.


\
 
 \ /
  Last update: 2009-10-10 11:31    [W:0.484 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site