Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935540AbXJSSf2 (ORCPT ); Fri, 19 Oct 2007 14:35:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757563AbXJSSfU (ORCPT ); Fri, 19 Oct 2007 14:35:20 -0400 Received: from [12.38.223.190] ([12.38.223.190]:20427 "EHLO mail.sw.starentnetworks.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1759584AbXJSSfT (ORCPT ); Fri, 19 Oct 2007 14:35:19 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18200.63696.399763.437303@zeus.sw.starentnetworks.com> Date: Fri, 19 Oct 2007 14:34:56 -0400 From: Dave Johnson To: Hiroshi Shimamoto Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Thomas Gleixner , Greg KH , Chris Wright Subject: Re: [PATCH] i386: fix TSC clock source calibration error [part 2] In-Reply-To: <4718F0DE.3050207@ct.jp.nec.com> References: <18196.53154.100115.92459@zeus.sw.starentnetworks.com> <20071018085713.GA11022@elte.hu> <18200.59017.358372.378373@zeus.sw.starentnetworks.com> <4718F0DE.3050207@ct.jp.nec.com> X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 787 Lines: 23 Hiroshi Shimamoto writes: > Dave Johnson wrote: > > mach_prepare_counter(); > > It's a really rare case, but if SMI interrupt takes CPU here, just after > prepare and before rdtscll, it makes delta64 shorter than expected one. > Is it possible? And how about moving rdtscll before mach_prepare_counter()? > > > rdtscll(start); Yep, rare indeed (about 1 instruction). Moving the start read before the prepare call should solve that one too providing the setup doesn't take any real measurable time. -- Dave Johnson Starent Networks - 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/