On Wed, 7 May 2008, David Woodhouse wrote::-) Yes, the generic callers of read_persistent_clock() seem to be fine. I have not dug into various pieces of platform code to check there though. I do hope platform maintainers enable these debugging checks from time to time -- I mean especially those taking care of all these more or less exotic systems and boards residing one level below generic architecture support... ;-) Good idea. I have thought of this and recognised the concern about modules. I think another possibility that could work with modules might be opening and closing the device on demand. But still it is just an optimisation, which can certainly be done gradually on top of these changes without even changing the interface. From the code structure's point of view it is certainly cleaner to open and close the device each time it is used and I think as such it is a good starting point -- let's spoil it later. ;-) Even better than that -- some devices may have better precision and require no strange handling. For example this very M41T81 chip I am working with supports resolution up to .01s -- which means there is little point in trying to work out delays, etc. to get the clock written back at the right point, where we can easily obtain two levels of magnitude better a resolution by simply not discarding the sub-second part of a timestamp. Of course for sub-second resolution of the RTC the interface of read_persistent_clock() would have to be modified to return a struct timespec; contrarily update_persistent_clock() is ready for that, but then struct rtc_time plus rtc_read_time(), rtc_set_mmss() and rtc_set_time() will still have to be updated accordingly. BTW, this chip is even better than that, because it can be disciplined -- there is a five-bit calibration register that lets one add or remove oscillator ticks to/from the input at a certain stage of the divider chain -- that could be used by the NTP daemon or tools like `hwclock --adjust' somehow. It's just an idea -- I have not investigated it further. Yes, that I would consider a reasonable long-term plan, but it will take at least a short while during which it might not be a good idea to break all the platforms that have not got converted yet. Especially as, however unbelievable it may sound, unlike myself I think most people do not consider the Broadcom SWARM the most obvious platform to use and/or support. Maciej --
| Andrea Arcangeli | [PATCH 06 of 11] rwsem contended |
| Mikulas Patocka | LFENCE instruction (was: [rfc][patch 3/3] x86: optimise barriers) |
| Rafael J. Wysocki | Re: [Bug 10030] Suspend doesn't work when SD card is inserted |
| Manu Abraham | PCIE |
git: | |
| Sverre Rabbelier | Git vs Monotone |
| Junio C Hamano | [ANNOUNCE] GIT 1.5.4 |
| Bill Lear | Meaning of "fatal: protocol error: bad line length character"? |
| Junio C Hamano | Re: [PATCH] Teach remote machinery about remotes.default config variable |
| Richard Stallman | Real men don't attack straw men |
| Stefan Beke | mail dovecot: pipe() failed: Too many open files |
| Wijnand Wiersma | Almost success: OpenBSD on Xen |
| Didier Wiroth | how can I "find xyz | xargs tar" ... like gtar |
| Greg A. Woods | Re: Fork bomb protection patch |
| Tyler Retzlaff | Re: more summer of code fun |
| Elad Efrat | Re: sysctl knob to let sugid processes dump core (pr 15994) |
| Thor Lancelot Simon | Re: FFS journal |
