From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] clocksource=tsc Date: Tue, 15 Jul 2008 14:05:14 +0100 Message-ID: References: <20080714115941000.00000080236@djm-pc> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080714115941000.00000080236@djm-pc> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "dan.magenheimer@oracle.com" , "Xen-Devel (E-mail)" Cc: Dave Winchell List-Id: xen-devel@lists.xenproject.org On 14/7/08 18:59, "Dan Magenheimer" wrote: >> I'm sympathetic to the patch, but it looks like an ugly hack >> right now. > >> Since it should clearly only affect behaviour when the new >> clocksource is explicitly selected... > > Actually the ugliness is because the read_counter function > and plt_mask are both u32 and I worried that changing them to > a u64 would be too invasive. > > So here's two possible replacement patches, one with those > switched to u64 and the other with separate 32- and 64-bit > read_counter functions. Both are boot-tested with and > without clocksource=tsc. Changeset 18055 is what I had in mind. I split out the read_counter-is-64-bit portion separately. The changeset needs a bit of testing and it may need a tweak or two. -- Keir