lkml.org 
[lkml]   [2010]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: [PATCH] x86: Export tsc related information in sysfs
> From: H. Peter Anvin [mailto:hpa@zytor.com]
> Subject: Re: [PATCH] x86: Export tsc related information in sysfs
>
> On 05/18/2010 10:49 AM, Dan Magenheimer wrote:
> >
> > (Though I expect tglx/arjan/andi/mingo to disagree with this proposal
> > for similar reasons as the original one that started this thread...)
>
> I'll add another reason to disagree: exporting these as sysfs variables
> is non-atomic, but these are really only useful when atomically read as
> a unit.

Which "these"? The counters? I would think the primary use
of the counters is to diagnose extreme problem cases, not
to differentiate whether a system or process did exactly
27 vs 28 rdtsc's, so I don't see why atomic read is at all
necessary.

Or did I miss your point entirely?


\
 
 \ /
  Last update: 2010-05-18 21:35    [W:0.074 / U:15.388 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site