lkml.org 
[lkml]   [2006]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: sched_clock() uses are broken
    Date
    On Wednesday 03 May 2006 09:09, Mike Galbraith wrote:

    > Given that most people are going to end up using the pm_timer anyway, I
    > don't see the point of even having a sched_clock(). If it's jiffy
    > resolution, it's useless. If it's wildly inaccurate (as it is in the
    > SMP case, monotonicity issues aside) it's more than useless.

    For sched_clock TSC is always used and it's fine - sched_clock
    doesn't require the guarantees that make TSC often useless otherwise

    e.g. the scheduler is designed to only use it on one CPU
    and can also tolerate variations scaling with frequency.

    -Andi
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-05-03 09:43    [W:2.469 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site