[lkml]   [2010]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] x86: Export tsc related information in sysfs
    Venkatesh Pallipadi <> writes:

    > From: Dan Magenheimer <>
    > Kernel information about calibrated value of tsc_khz and
    > tsc_stability (result of tsc warp test) are useful bits of information
    > for any app that wants to use TSC directly. Export this read_only
    > information in sysfs.

    Is this really a good idea? It will encourage the applications
    to use RDTSC directly, but there are all kinds of constraints on
    that. Even the kernel has a hard time with them, how likely
    is it that applications will get all that right?

    It would be better to fix them to use the vsyscalls instead.
    Or if they can't use the vsyscalls for some reason today fix them.

    This way if anything changes again in TSC the kernel could
    shield the applications.


    -- -- Speaking for myself only.

     \ /
      Last update: 2010-05-15 11:59    [W:0.019 / U:106.876 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site