Thread (4 messages) 4 messages, 2 authors, 2007-08-24

Re: [PATCH RT 3/3] fix get_monotonic_cycles for latency tracer

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2007-08-24 18:57:14
Also in: lkml


--
On Fri, 24 Aug 2007, john stultz wrote:
quoted
-	/* calculate the delta since the last update_wall_time: */
-	cycle_delta = (cycle_now - clock->cycle_last) & clock->mask;
+	} while (cycle_raw != clock->cycle_raw ||
+		 cycle_last != clock->cycle_last);
So if I'm understanding this right, not taking a lock isn't an
optimization (as the seq read lock code is almost the same), but a
requirement (as this might be called while xtime_lock is held),
correct?
Exactly. The latency tracer uses this so no locks can be grabbed
(seq_locks included).
Might want to clarify that a bit in the comment.
OK, will do and send a updated patch.

I wasn't in the best state writing this patch in the wee hours of the
night ;-)

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help