Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759846AbXENIXn (ORCPT ); Mon, 14 May 2007 04:23:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752257AbXENIXh (ORCPT ); Mon, 14 May 2007 04:23:37 -0400 Received: from imx12.toshiba.co.jp ([61.202.160.132]:36307 "EHLO imx12.toshiba.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975AbXENIXg (ORCPT ); Mon, 14 May 2007 04:23:36 -0400 Date: Mon, 14 May 2007 17:23:17 +0900 Message-ID: From: Tsutomu OWA To: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org Cc: mingo@elte.hu, tglx@linutronix.de Subject: Re: [patch 5/5] powerpc 2.6.21-rt1] fix clocksource_timebase.shift value In-Reply-To: References: User-Agent: Wanderlust/2.8.1 (Something) Emacs/20.7 Mule/4.0 (HANANOEN) Organization: Software Engineering Center, TOSHIBA. MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1003 Lines: 26 Calculate clocksource_timebase.shift from tb_ticks_per_jiffy to get an accurate translation, though I don't understand why current version of clocksource_timebase.shift could be constant... Signed-off-by: Tsutomu OWA -- owa --- linux-2.6.21-rt1/arch/powerpc/kernel/time.c 2007-05-09 18:05:57.000000000 +0900 +++ rt/arch/powerpc/kernel/time.c 2007-05-09 18:06:24.000000000 +0900 @@ -945,6 +945,9 @@ static int __init init_timebase_clocksou if (__USE_RTC()) return -ENODEV; +#ifdef CONFIG_PPC64 + clocksource_timebase.shift = tb_ticks_per_jiffy / 1000000; +#endif clocksource_timebase.mult = clocksource_hz2mult(tb_ticks_per_sec, clocksource_timebase.shift); return clocksource_register(&clocksource_timebase); - 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/