Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756948Ab0KQAFl (ORCPT ); Tue, 16 Nov 2010 19:05:41 -0500 Received: from mail-wy0-f174.google.com ([74.125.82.174]:41456 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753977Ab0KQAFj (ORCPT ); Tue, 16 Nov 2010 19:05:39 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=Y3hV3MK+SaBO3CAvgqY5JoYsfE4c/8Bxv9cwPVW+VhcFsF7DU7a7wCLOfWOC+xLNaF n0f4s0eg7/BMgLHI+VsdvatXEKGP1K+NzyhehHYO1+al2xG50f7UWsNc2geYEE/nMVkY oVx16MC4+J1Nki6690/moRYM6rUXkuuTRwd1c= MIME-Version: 1.0 In-Reply-To: <1289609931.3292.87.camel@localhost.localdomain> References: <80b5a10ac1a6ef51afca3c113b624bf1b5049452.1289427381.git.luto@mit.edu> <1289605221.3292.53.camel@localhost.localdomain> <1289607722.3292.84.camel@localhost.localdomain> <1289609931.3292.87.camel@localhost.localdomain> From: Andrew Lutomirski Date: Tue, 16 Nov 2010 19:05:15 -0500 X-Google-Sender-Auth: Z6p-kEoOvKZzybbXOD1gdF0e-mg Message-ID: Subject: Re: [PATCH] Improve clocksource unstable warning To: john stultz Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, pc@us.ibm.com Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1097 Lines: 27 On Fri, Nov 12, 2010 at 7:58 PM, john stultz wrote: > On Sat, 2010-11-13 at 00:22 +0000, john stultz wrote: >> On Fri, 2010-11-12 at 18:51 -0500, Andrew Lutomirski wrote: >> > Also wrong if cs_elapsed is just slightly less than wd_wrapping_time >> > but the wd clocksource runs enough faster that it wrapped. >> >> Ok. Good point, that's a problem. Hrmmmm. Too much math for Friday. :) > > I have a hard time leaving things alone. :) > > So this still has the issue of the u64%u64 won't work on 32bit systems, > but I think once I rework the modulo bit the following should be what > you were describing. > > It is ugly, so let me know if you have a cleaner way. > I'm playing with this stuff now, and it looks like my (invariant, constant, single-package i7) TSC has a max_idle_ns of just over 3 seconds. I'm confused. --Andy -- 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/