lkml.org 
[lkml]   [2003]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] linux-2.5.66_monotonic-clock_A3
From
Date
john stultz <johnstul@us.ibm.com> writes:

> + do {
> + seq = read_seqbegin(&xtime_lock);
> + ret = timer->monotonic_clock();
> + } while (read_seqretry(&xtime_lock, seq));

Why does it need to check xtime lock ? xtime should be independent
of the monotonic time because it can be changed.

Also doing seqlocks around hardware register reads is quite nasty,
because a hardware register read can be hundreds of cycles and you're
very likely to get retries. If you really need a seqlock I would
move it into the low level function and do it after the hardware access.
But as far as I can see it can be just removed.

-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: 2005-03-22 13:34    [W:0.111 / U:1.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site