public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.18-rt7: rollover with 32-bit cycles_t
@ 2006-11-08  1:36 Kevin Hilman
  2006-11-08  2:06 ` john cooper
  2006-11-08  3:23 ` Daniel Walker
  0 siblings, 2 replies; 6+ messages in thread
From: Kevin Hilman @ 2006-11-08  1:36 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Thomas Gleixner, linux-kernel

On ARM, I'm noticing the 'bug' message from check_critical_timing()
where two calls to get_cycles() are compared and the 2nd is assumed to
be >= the first.

This isn't properly handling the case of rollover which occurs
relatively often with fast hardware clocks and 32-bit cycle counters.

Is this really a bug?  If the get_cycles() can be assumed to run between
0 and (cycles_t)~0, using the right unsigned math could get a proper
delta even in the rollover case.  Is this a safe assumption?

Kevin






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-11-09  9:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-08  1:36 2.6.18-rt7: rollover with 32-bit cycles_t Kevin Hilman
2006-11-08  2:06 ` john cooper
2006-11-08 19:22   ` Kevin Hilman
2006-11-09  9:14     ` Ingo Molnar
2006-11-08  3:23 ` Daniel Walker
2006-11-08 13:29   ` john cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox