Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751848AbZGaIeG (ORCPT ); Fri, 31 Jul 2009 04:34:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751420AbZGaIeG (ORCPT ); Fri, 31 Jul 2009 04:34:06 -0400 Received: from e37.co.us.ibm.com ([32.97.110.158]:41973 "EHLO e37.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750863AbZGaIeE (ORCPT ); Fri, 31 Jul 2009 04:34:04 -0400 Subject: Re: [RFC][patch 00/12] clocksource / timekeeping rework V2 From: john stultz To: Daniel Walker Cc: Martin Schwidefsky , linux-kernel@vger.kernel.org, Ingo Molnar , Thomas Gleixner In-Reply-To: <1249018430.6046.73.camel@desktop> References: <200907291717.n6THHG6f001426@d06av06.portsmouth.uk.ibm.com> <20090730125351.6f16e9ec@skybase> <1248958173.6046.32.camel@desktop> <20090730150456.6c87b997@skybase> <1248961750.6046.35.camel@desktop> <1248974187.3331.6.camel@work-vm> <1248977320.6046.66.camel@desktop> <1248987409.3374.5.camel@localhost> <1249018430.6046.73.camel@desktop> Content-Type: text/plain Date: Fri, 31 Jul 2009 01:34:01 -0700 Message-Id: <1249029241.3322.2.camel@work-vm> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3220 Lines: 67 On Thu, 2009-07-30 at 22:33 -0700, Daniel Walker wrote: > On Thu, 2009-07-30 at 13:56 -0700, john stultz wrote: > > On Thu, 2009-07-30 at 11:08 -0700, Daniel Walker wrote: > > > On Thu, 2009-07-30 at 10:16 -0700, john stultz wrote: > > > > Clocksources as modules was one of the initial design goals I had way > > > > back. The benefit being that an older distro kernel could be made to > > > > support newer stranger hardware via a clocksource driver. While the > > > > hardware vendors have for the most part consolidated on HPET/ACPI PM > > > > which has mostly avoided the need, I still think its worth preserving. > > > > > > If the PIT case is a real use case for unregister than we can keep it > > > around. If not, then that path just becomes unused and all unused code > > > is open for removal from my perspective. > > > > > > If the case you describe above is a good one, then someone eventually > > > will add back the unregister path. Which should come with a good reason > > > and with an actual user of the code.. > > > > The case I describe above is one where the user of the code doesn't > > necessarily have the ability to add back the unregister path. > > I'm not sure I understand your example.. Your saying a situation where > the kernel can't modified and reloaded, and the hardware clocks aren't > fully implemented in code yet? Right. Distro kernels. > > Old distro kernels can be difficult to make changes to when new hardware > > is later released, so being able to just backport a module, compile and > > load it to get a unexpectedly strange new bit of hardware to work with > > an older distro kernel seems valuable enough to keep the code around to > > me. > > You can just as easily back port the code as a built in, and reload the > kernel right? Why would it need to be a module? Again, distro kernels. Users can't rebuild them without possibly losing the support they've paid for, and often recompiling them can cause 3rd party drivers to fail to work (some distros preserve kernel ABI stability between minor releases). Waiting 6 months or two years for the next release where everything is fixed upstream isn't going to make users happy. Now, with most hardware vendors implementing decent HPET/ACPI PM counters, maybe this case is more me reacting to a bad situation I had to deal with in the past then what we can realistically expect in the future. But given hardware designers like to break assumptions to squeeze out performance or features, I'd suspect there will be future situations where having some extra flexibility would be valuable. Imaginary example: broken BIOS has incorrect HPET freq and the TSCs are not in sync. Savvy IT dude finds the problem, copies the HPET driver, names it hpet-fix and hard codes the proper HPET freq in. Sets the rating higher then HPET, builds it as a module and loads it on the affected hardware. Suddenly there's a solution where otherwise none might be possible. thanks -john -- 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/