| To: | Stephen Hemminger <shemminger@xxxxxxxx> |
|---|---|
| Subject: | Re: do_gettimeofday |
| From: | Mitchell Blank Jr <mitch@xxxxxxxxxx> |
| Date: | Thu, 2 Oct 2003 13:46:36 -0700 |
| Cc: | Steve Modica <modica@xxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <20031002125625.72b8c0a7.shemminger@xxxxxxxx> |
| References: | <3F7C6F3B.6070502@xxxxxxx> <20031002125625.72b8c0a7.shemminger@xxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.1i |
Stephen Hemminger wrote: > Two problems: > a. xtime is limited to HZ resolution which is insufficient for more > advanced > packet schedulers and rtt estimation. > b. unlocked access to xtime is unsafe because it is not atomic! > > ATM is busted if it does this. It got fixed in 2.5 (when skb->stamp got changed to nanosecond resolution so it broke the compile to do it the old way) You can use LXR to see all of the xtime users as of 2.6.0-test2: http://lxr.linux.no/ident?v=2.6.0-test2&i=xtime The reason that ATM _had_ been using xtime was not for performance. When the ATM code was originally written (during the 1.X kernels) all network drivers used xtime directly. At some point the network drivers were mass-updated to use do_gettimeofday() but ATM had not been merged into the main tree yet so it missed the conversion. -Mitch |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: do_gettimeofday, Stephen Hemminger |
|---|---|
| Next by Date: | Re: [Patch]: IPv6 Connection Tracking, Harald Welte |
| Previous by Thread: | Re: do_gettimeofday, Stephen Hemminger |
| Next by Thread: | Re: do_gettimeofday, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |