From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754690AbYICEeG (ORCPT ); Wed, 3 Sep 2008 00:34:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750920AbYICEdy (ORCPT ); Wed, 3 Sep 2008 00:33:54 -0400 Received: from mtiwmhc13.worldnet.att.net ([204.127.131.117]:44544 "EHLO mtiwmhc13.worldnet.att.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbYICEdx (ORCPT ); Wed, 3 Sep 2008 00:33:53 -0400 Message-ID: <48BE13C5.8020604@lwfinger.net> Date: Tue, 02 Sep 2008 23:34:13 -0500 From: Larry Finger User-Agent: Thunderbird 2.0.0.12 (X11/20071114) MIME-Version: 1.0 To: Linus Torvalds CC: Thomas Gleixner , LKML , "Rafael J. Wysocki" , Alok Kataria , Michael Buesch Subject: Re: [PATCH] Fix TSC calibration issues References: <48BB2116.1060904@lwfinger.net> <48BC2A03.9000104@lwfinger.net> <48BDFBB6.3010106@lwfinger.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > > On Tue, 2 Sep 2008, Larry Finger wrote: >> I know that Linus has some problems with this patch, but FWIW it worked on my >> K6. The dmesg output is >> >> TSC: PIT calibration deviates from PMTIMER: 428809 214401. >> TSC: Using PIT calibration value >> Detected 428.809 MHz processor. > > I don't have a problem with what the patch _does_ (I think all the added > sanity checking is good). > > I just don't like how it makes the already rather complex and confusing > function about ten times _more_ complex and confusing. It needs splitting > up. > > But we can split it up after-the-fact as well as before-the-fact. > > Does this cleanup-patch (on _top_ of Thomas' patch) also work for you? It > should do exactly the same thing, except it splits up the TSC PIT > calibration into a function of its own. > > But I may obviously have introduced some silly bug when cleaning it up, > so testing necessary.. Same result as Thomas' version. Larry