From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 14 Aug 2003 17:13:36 +0100 (BST) Received: from gateway-1237.mvista.com ([IPv6:::ffff:12.44.186.158]:7931 "EHLO orion.mvista.com") by linux-mips.org with ESMTP id ; Thu, 14 Aug 2003 17:13:34 +0100 Received: (from jsun@localhost) by orion.mvista.com (8.11.6/8.11.6) id h7EGDQu01222; Thu, 14 Aug 2003 09:13:26 -0700 Date: Thu, 14 Aug 2003 09:13:26 -0700 From: Jun Sun To: "Maciej W. Rozycki" Cc: Ralf Baechle , linux-mips@linux-mips.org, jsun@mvista.com Subject: Re: [patch] Generic time trailing clean-ups Message-ID: <20030814091326.A1203@mvista.com> References: <20030813094541.B9655@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from macro@ds2.pg.gda.pl on Thu, Aug 14, 2003 at 01:31:31PM +0200 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 3050 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: jsun@mvista.com Precedence: bulk X-list: linux-mips On Thu, Aug 14, 2003 at 01:31:31PM +0200, Maciej W. Rozycki wrote: > On Wed, 13 Aug 2003, Jun Sun wrote: > I am completely lost in your arguments. Let us keep it to the basic. Tell me what is wrong with the following, and why your proposal is better than this: 1) get rid of calibrate_*() function 2) introduce a generic counter frequence calibration routine, which is only invoked when mips_counter_frequency is 0. 3) If any board is not happy with this calibration, it is free to do its calibration in board_timer_init(), which would set mips_counter_frequency to be non-zero. Jun