On Tue, 2008-05-06 at 17:50 -0300, Carlos R. Mafra wrote:Not yet .. I used you patch with some formatting changes and I get, clocksource_hpet.mult walker = 292935555 clocksource_hpet.mult my patch = 292935555 Same as yours .. just checking ;) Now I modify the shift value from 22 to 25 and I get this, clocksource_hpet.mult walker = 2343484437 clocksource_hpet.mult my patch = 2343484446 I don't think this is due to rounding .. I'm not really sure why they're different .. I would assume the clocksource_hz2mult is more correct, but feel free to check into it if you want.. The reason I'm messing with the shift is cause 22 is actually too low.. For your period it can be 25, which would give better accuracy. If you want to check the shift calculation I used it looks like this, static inline u32 clocksource_hz2shift(u32 bits, u32 hz) { u64 temp; for (; bits > 0; bits--) { temp = (u64) NSEC_PER_SEC << bits; do_div(temp, hz); if ((temp >> 32) == 0) break; } return bits; } Daniel --
| Pardo | Re: pthread_create() slow for many threads; also time to revisit 64b context switc... |
| Paul Jackson | Inquiry: Should we remove "isolcpus= kernel boot option? (may have realtime uses) |
| Srivatsa Vaddagiri | Re: [PATCH, RFC] reimplement flush_workqueue() |
| Peter Zijlstra | Re: Btrfs v0.16 released |
git: | |
| Giuseppe Bilotta | Re: gitweb and remote branches |
| Miklos Vajna | [rfc] git submodules howto |
| JD Guzman | C# Git Implementation |
| Junio C Hamano | Re: [PATCH] fix parallel make problem |
| Richard Stallman | Real men don't attack straw men |
| Steve B | SSH brute force attacks no longer being caught by PF rule |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Marius ROMAN | 1440x900 resolution problem |
| Tomasz Grobelny | [PATCH 0/5] [DCCP]: Queuing policies |
| Dushan Tcholich | Re: ksoftirqd high cpu load on kernels 2.6.24 to 2.6.27-rc1-mm1 |
| John Heffner | Re: A Linux TCP SACK Question |
| Denys Fedoryshchenko | Re: Could you make vconfig less stupid? |
