From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw01.freescale.net (az33egw01.freescale.net [192.88.158.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id DC1F6DDF5C for ; Fri, 15 Feb 2008 07:51:37 +1100 (EST) Message-ID: <47B4A9D7.3030100@freescale.com> Date: Thu, 14 Feb 2008 14:51:35 -0600 From: Scott Wood MIME-Version: 1.0 To: Leon Woestenberg Subject: Re: High resolution timer support in 2.6.24+ for MPC831x? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Leon Woestenberg wrote: > Hello all, > > although I can enable high res timers in 2.6.24, the item note says it > does nothing if the platform does not have support for it. > > My platform is a MPC8313E-RDB, and I suspect no high res clock source > implementation exists for it in 2.6.24, because > clock_getres(CLOCK_REALTIME,) gives me 1/HZ. > > Is this correct and/or is anything in the works? The timebase/decrementer can be used as a high clock source on virtually all powerpc chips; I tried clock_getres(CLOCK_REALTIME) on an 8313erdb, and I got 1 ns. Did you turn on CONFIG_HIGH_RES_TIMERS? -Scott