lkml.org 
[lkml]   [2006]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC] [Patch 7/8] statistics infrastructure - exploitation prerequisite
Date

> Anrd> - do_gettimeofday
> Anrd> potentially slow, reliable TOD clock, microsecond resolution
>
> Slow, not necessarily safe to call in IRQ context.

It's only slow if the platform can't do better. On good hardware it is
fast. And yes it is safe to call in IRQ context. Networking does
that all the time.

If the hardware doesn't have a good working timer for gettimeofday
then everything else will be also slow.

-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-17 03:30    [W:0.072 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site